Displaying 20 results from an estimated 3000 matches similar to: "using names inside a loop"
2002 Feb 01
1
Different behaviour in Linux and Windows (PR#1293)
Hi
I have written a small function to calculate distances between pairs of
landmarks ('my.dist' bellow). I gave it to a colleague that works with
MSWindows and the function doesn't give the right answer:
R 1.4.1 for Linux:
> my.dist()
[1] 22 561
R 1.4.1 for Windows:
> my.dist()
[1] 22 560
Warning message:
Replacement length not a multiple of the elements to replace in
2003 Aug 14
2
vectorization question
If you look at the structure, you'll see:
> x$V4 <- 0
> str(x)
`data.frame': 4 obs. of 4 variables:
$ V1: int 1 2 3 4
$ V2: int 5 6 7 8
$ V3: int 9 10 11 12
$ V4: num 0
Don't know if this is the intended result. In any case, you're probably
better off using data.matrix, as
> data.matrix(x)
V1 V2 V3 V4
1 1 5 9 0
2 2 6 10 0
3 3 7 11 0
4 4 8 12
2004 Mar 26
1
Mahalanobis
Dear all
Why isn'it possible to calculate Mahalanobis distances with R for a matrix
with 1 row (observations) more than the number of columns (variables)?
> mydata <- matrix(runif(12,-5,5), 4, 3)
> mahalanobis(x=mydata, center=apply(mydata,2,mean), cov=var(mydata))
[1] 2.25 2.25 2.25 2.25
> mydata <- matrix(runif(420,-5,5), 21, 20)
> mahalanobis(x=mydata,
2002 Apr 29
1
masking functions
Dear all
I was writing some code that needed functions from packages 'MASS' and
'CircStats', and I received a warning saying that the function
'eqscplot' in one of the packages was masked by another 'eqscplot' from
the other package (in fact 'eqscplot' from 'CircStats' seems a short
version of 'eqscplot' from 'MASS'). This masking of
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
On Tue, 03 Oct 2000 10:55:28 +0000, Alberto Murta <amurta at ipimar.pt>
wrote:
> And objectively, it's a fact that "<-"
>makes the code easier to read than "_".
I don't follow this argument. Underscore isn't used anywhere else in
the language, so when you see one, you know it's an assignment. On
the other hand, both "<" and
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
> Date: Tue, 03 Oct 2000 14:45:32 +0000
> From: Alberto Murta <amurta at ipimar.pt>
>
> Duncan Murdoch wrote:
>
> > I don't follow this argument. Underscore isn't used anywhere else in
> > the language, so when you see one, you know it's an assignment. On
> > the other hand, both "<" and "-" have multiple other uses.
2004 Jun 03
5
Confidence intervals for predicted values in nls
Dear all
I have tried to estimate the confidence intervals for predicted values of a
nonlinear model fitted with nls. The function predict gives the predicted
values and the lower and upper limits of the prediction, when the class of
the object is lm or glm. When the object is derived from nls, the function
predict (or predict.nls) gives only the predicted values. The se.fit and
interval aguments
2003 Jul 03
2
unlist
Hi
I have a list with several data.frames, all with the same number of
colunms but different number of rows, and I'd like to transform this
list into a single dataframe. I need to mimic an rbind of all dataframes
...
Transform doesn't seem to work :-(
Thanks
EJ
--
Ernesto Jardim <ernesto at ipimar.pt>
Bi?logo Marinho/Marine Biologist
IPIMAR - Instituto Nacional de Investiga??o
2003 Sep 08
0
New highlighting for NEdit 5.3
Hi,
I've just put together a new R syntax highlighting file for Nedit 5.3.
I've borrow the "base" functions of Jedit (thanks to Tobias Elze and Zed
A. Shaw) so now NEdit highlights a little more than before :)
You can download the file here:
http://ernesto.freezope.org/cmf/starthere/r/R-5.3.pats
Just import it into NEdit with
> nedit -import R-5.3.pats
and save your
2008 Jan 09
2
Two dependent variables in formula
Hello,
I' m trying to change the formula in the rpart function. The
format of a general formula is Answer ~ expression, where Answer is
the dependent variable and expression is set of terms containing the
independent variables and separated by operators. I want the response
of the formula is more than one dependent variable. It is possible?
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
> From: dmurdoch at pair.com (Duncan Murdoch)
> Date: Tue, 03 Oct 2000 12:31:32 GMT
>
> On Tue, 03 Oct 2000 10:55:28 +0000, Alberto Murta <amurta at ipimar.pt>
> wrote:
>
> > And objectively, it's a fact that "<-"
> >makes the code easier to read than "_".
>
> I don't follow this argument. Underscore isn't used
2003 Jan 24
4
memory problems
Hi
I'm computing a bca interval using bca.ci from the boot package.
When I try to use this I get an error
> library(boot)
> boot(logglm.data,boot.fishpower,2500,coef.vec=coeflm.vec)->blm8901
> bca.ci(blm8901,index=29)
Error: cannot allocate vector of size 456729 Kb
However my machine has 2GB of memory and without R running I only have
112M of memory used.
Is there something
2007 Aug 28
1
Age-Length key with kimura algorith
Se ha borrado un texto insertado con un juego de caracteres sin especificar...
Nombre: no disponible
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070828/6641b572/attachment.pl
2006 Jun 28
1
Very slow read.table on Linux, compared to Win2000 [Broad cast]
From: Peter Dalgaard
>
> <davidek at zla-ryba.cz> writes:
>
> > Dear all,
> >
> > I read.table a 17MB tabulator separated table with 483
> > variables(mostly numeric) and 15000 observations into R.
> This takes a
> > few seconds with R 2.3.1 on windows 2000, but it takes
> several minutes
> > on my Linux machine. The linux machine is
2004 Mar 04
10
"Statistiques avec R"
Dear R users,
I want to share my joy with you. Please see the following
excellent introduction to R "Statistiques avec R " by
Vincent Zoonekynd
http://zoonek2.free.fr/UNIX/48_R/all.html
In paticular, you can see a lot of fascinating graphics
examples of R from which you can get many hints.
Soryy if this is already well-known, but the CRAN search
did not show nothing with the keyword
2000 Apr 28
3
Matrix inverse
I haven't found a function that directly calculates the matrix inverse, does it exist? Otherwise what would be the fastest way to do it?
Patrik Waldmann
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the
2002 Nov 19
0
Help on variogram.gls (nlme package)
I am trying to use the nlme package in R following the book
"Mixed-Effects Models in S and S-Plus". I have the latest versions of R
(1.6.1) and nlme (3.1-33) for Windows (95 or later).
I had problems with the instruction Variogram using a gls class object
(Section 5.4, pg 261-262). Even when I use the scripts included in the
package, I get an error message and not the expected
2003 Jun 05
1
scales in xyplot doesn't seem to work for x axis
Hi
I'm doing a xyplot and I wand to reduce the number of tick marks in the
x axis. My x axis are month and I want to reduce the 12 tick marks to 4.
I used the scales argument but it doesn't seem to work, althougth it
works on y axis if I use scales=list(tick.number=4).
2003 Jan 23
2
Exporting graphics window
Hi
I'm working on a remote computer with R (SuSE 8.1) and I want to do some
ploting. Does anyone knows if it is possible to export the graphics
window in to my display and how I can do it ?
Thanks
EJ
--
Ernesto Jardim <ernesto at ipimar.pt>
Marine Biologist
Research Institute for Agriculture and Fisheries
Lisboa, Portugal
Tel: +351 213 027 000
Fax: +351 213 015 948
2013 Apr 30
0
lmer Error: Downdated X'X is not positive definite
Hi,
This is the first time I've posted, and I apologize if I formulate this
incorrectly.
I am analyzing data from a multi-region carrot variety trial. 35 varieties
of carrots were grown in 3 randomized complete blocks in organic and
conventional fields in Wisconsin, Indiana, Washington, and California. In
this example I am comparing the heights of the carrot tops at harvest.
In other