Displaying 20 results from an estimated 7000 matches similar to: "problem with symbol function"
2009 Sep 19
1
generic methods - in particular the summary function
Hi all,
I'm currently working on the fitdistrplus package (that basically fit
distributions). There is something I do not understand about the
generic function summary.
In the current version on CRAN, there is no NAMESPACE saying
S3method(summary, fitdist)
.
However if we use summary on an object send by fitdist function it
works fine...
According to R-lang, we have
"
The most
2009 Apr 29
3
legend with small colored boxes
Hi all,
I tried to a nice legend with small boxes filled with the colors used
for the plots. But it does nor work, boxes are always filled with black.
An example is here
plot(1:4,1:4)
lines(1:4,4:1, col="blue")
legend("top",leg=c("a","b"),col=c("black","blue"), fill=TRUE)
How could I specify the colors? the argument col.box is the
2009 May 10
2
Vignettes with missing or empty \VignetteIndexEntry:
Hi,
I have a problem when checking the package 'probdistr' (on probability
distributions).
I got this warning
* checking index information ... WARNING
Vignettes with missing or empty \VignetteIndexEntry:
[1] "probdistr-chi" "probdistr-contextra" "probdistr-discrete"
[4] "probdistr-discrextra" "probdistr-exp"
2009 Jul 30
1
rowSums, rowMean and rowCumSums?
Dear list,
Don't you think it could be useful to have in R base a function
rowCumSums, that compute cumulative sums for each row of a matrix?
My implementation of rowCumSums is
rowCumSums <- function(x) t(mapply(function(row)cumsum(x[row,]),
1:NROW(x)))
I'm sure it can be improved to have other arguments like na.rm or dims.
Is there any hope to have this function in R?
2009 Nov 13
2
AR(2) modelling
Hi useRs,
I'm trying to fit a basic AR(2) model with the 'ar' function. And when
I try to check the value of the coefficients, I could not find the
same value as the 'ar' function.
Here is my example:
myserie <- c(212, 205, 210, 213, 217, 222, 216, 218, 220, 212, 215, 236)
#plot(myserie, type="l")
myserieminus0 <- tail(myserie, -2)
myserieminus1 <-
2009 Nov 13
2
AR(2) modelling
Hi useRs,
I'm trying to fit a basic AR(2) model with the 'ar' function. And when
I try to check the value of the coefficients, I could not find the
same value as the 'ar' function.
Here is my example:
myserie <- c(212, 205, 210, 213, 217, 222, 216, 218, 220, 212, 215, 236)
#plot(myserie, type="l")
myserieminus0 <- tail(myserie, -2)
myserieminus1 <-
2010 Aug 06
1
on the optim function
Dear useRs,
I have just discovered that the R optim function does not return the number of iterations.
I still wonder why line 632-634 of optim C, the iter variable is not returned (for the BFGS method for example) ?
Is there any trick to compute the iteration number with function call number?
Kind regards
Christophe
--
Christophe Dutang
Ph.D. student at ISFA, Lyon, France
website:
2011 Apr 19
1
An update of the Distribustions man page
Dear list,
I would like to suggest a small update the ?Distributions man page of the
stats package. The current version contains the following line.
The CRAN package \pkg{SuppDists} for additional distributions.
I think it would be better to put in this man page a link to the CRAN task
view on Distributions
http://cran.r-project.org/web/views/Distributions.html. It is not true
that the
2009 Jul 21
1
thousands separator
Dear useRs,
I was wondering how to deal with data where thousands separator is a space
or a comma? with google, I thought I found the answer but the thread (
http://tolstoy.newcastle.edu.au/R/help/06/04/25524.html) just focuses on
decimal separator.
Is there any function to numbers written like this in a csv file?
Thanks in advance
Christophe
--
Christophe DUTANG
Ph. D. student at ISFA
2009 Feb 22
2
R tutorial
Dear all,
I have just found a 'good' tutorial R for datamining. I think it
should be on the contributed docs.
http://cran.r-project.org/other-docs.html
Here is the link
http://www.liaad.up.pt/~ltorgo/DataMiningWithR/
What do you think?
Kind regards
Christophe
--
Christophe Dutang
Ph. D. student at ISFA, Lyon, France
website: http://dutangc.free.fr
2010 Jul 07
4
constrained optimization
Dear list,
The task view on optimization does not reference a package for non linear
constrained optimization problems. Stefan Theussl told me to look at the
Rsolnp package, but unfortunately it is not very clear what method is R
ported. (The authors ported the matlab code of Yinyu Ye
http://www.stanford.edu/~yyye/ <http://www.stanford.edu/%7Eyyye/>)
Currently I'm looking for an
2009 May 15
3
drawing arrows
Hi,
I would like to draw arrows in a classic 2D plot. Which package should I
use? is there R base functions that do job?
On google, I could not find any useful discussion about this topic, except a
link to the function 'grid.arrows' of the grid package.
My problem is I would like to draw arrows at the edge of circles drawn by
the 'symbols' function. Maybe there is already a
2017 May 10
3
registering Fortran routines in R packages
Thanks for your email.
I try to change the name in lowercase but it conflicts with a C implementation also named halton. So I rename the C function halton2() and sobol2() while the Fortran function are HALTON() and SOBOL() (I also try lower case in the Fortran code). Unfortunately, it does not help since I get
init.c:97:25: error: use of undeclared identifier 'halton_'; did you mean
2015 Sep 17
1
names treatment in optim()
Dear both,
I have found that names are not treated in the same way in optim() depending on the optimization method (argument method).
The example below shows the difference between the Brent method and the L-BFGS-B method.
f <- function(x){ y <- x^2;names(y) <-"f(x)";y}
optim(10, f, method="Brent", lower=-1, upper=10)$value
optim(10, f, method="L-BFGS-B",
2009 Oct 10
2
[R-SIG-Mac] rnorm.halton
Hi all,
I need to transform classic 32bit Fortran code to 64bit Fortran code,
see the discussion [R-SIG-Mac] rnorm.halton. But I'm clearly a
beginner in Fortran...
Does someone already do this for his package?
From here, http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=linux&db=bks&fname=/SGI_Developer/Porting_Guide/ch03.html
, I identify the following changes
2017 May 09
2
registering Fortran routines in R packages
Dear list,
I?m trying to register Fortran routines in randtoolbox (in srt/init.c file), see https://r-forge.r-project.org/scm/viewvc.php/pkg/randtoolbox/src/init.c?view=markup&root=rmetrics.
Reading https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines and looking at what is done in stats package, I first thought that the following code will do the job:
2017 May 10
1
registering Fortran routines in R packages
Have you tried using tools:::package_native_routine_registration_skeleton()? If you don't like its output, you can easily edit its results and still avoid most pitfalls.
Cheers, Jari Oksanen
________________________________________
From: R-devel <r-devel-bounces at r-project.org> on behalf of Berend Hasselman <bhh at xs4all.nl>
Sent: 10 May 2017 09:48
To: Christophe Dutang
Cc:
2009 Oct 14
2
attach
Hi all,
I have a question regarding the memory usage for the attach function.
Say I have a data.frame inputdat that I create with read.csv.
I would like to know what happens on the memory side when I use
attach(inputdata)
Is there a second allocation of memory for inputdata?
Then I'm using eval on a expression which depends on the columns of
inputdata. Is it better not to use attach
2010 Jul 17
1
Bug 14340 - Symbols() plots with wrongly scaled y-axis
Hello, I submitted this bug report to r-core and got a rejection
saying I should post to r-help.
This is my first time ever submitting a bug report, so forgive me if
I'm using some wrong format.
So, here's my bug report:
Component: Graphics
OS: Mac OS 10.5.8, X11 XQuartz 2.5.0
Summary:
In the symbols function of the graphics package, scaling of the y-axis is
wrong, causing symbols
2009 Dec 20
0
new version of randtoolbox
Dear useRs,
We are happy to announce a new version of the randtoolbox* package
(version 1.09) on CRAN. The package is dedicated to Random Number
Generation and in a less exhaustive way to RNG tests. The package is
source-controlled at r-forge as part of the Rmetrics project http://r-forge.r-project.org/projects/rmetrics/
.
We invite you to take a look at the NEWS section to know the