Re: [R] longer object length is not a multiple of shorter object length

2010-12-07 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of madr > Sent: Tuesday, December 07, 2010 3:02 PM > To: r-help@r-project.org > Subject: [R] longer object length is not a multiple of shorter object > length

Re: [R] longer object length is not a multiple of shorter object length

2010-12-07 Thread Joshua Wiley
Hi, On Tue, Dec 7, 2010 at 3:01 PM, madr wrote: > > In datamatrix[, "y"] == datamatrix[, "y"][-1] : suppose datamatrix has 10 rows, you select column "y", and then for the equality remove the first 'row' (technically element at this point since you selected just column "y"). So R is being asked

[R] longer object length is not a multiple of shorter object length

2010-12-07 Thread madr
In datamatrix[, "y"] == datamatrix[, "y"][-1] : longer object length is not a multiple of shorter object length out = c(FALSE,datamatrix[,'y'] == datamatrix[,'y'][-1]) and I do not know why I get that error, the resulting out matrix is somehow one row larger than datamatrix... all I try to do

Re: [R] longer object length is not a multiple of shorter object length

2010-11-03 Thread David Winsemius
On Nov 3, 2010, at 11:17 AM, Stephen Liu wrote: - Original Message From: David Winsemius To: Stephen Liu Cc: r-help@r-project.org Sent: Wed, November 3, 2010 11:03:18 PM Subject: Re: [R] longer object length is not a multiple of shorter object length - snip - v <- 2*x + y

Re: [R] longer object length is not a multiple of shorter object length

2010-11-03 Thread Stephen Liu
- Original Message From: David Winsemius To: Stephen Liu Cc: r-help@r-project.org Sent: Wed, November 3, 2010 11:03:18 PM Subject: Re: [R] longer object length is not a multiple of shorter object length - snip - >> v <- 2*x + y + 1 >> Warning message: >> In 2

Re: [R] longer object length is not a multiple of shorter object length

2010-11-03 Thread David Winsemius
On Nov 3, 2010, at 11:00 AM, Stephen Liu wrote: Hi folks, I'm following An Introduction to R http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics to learn R. Coming to; 2.2 Vector arithmetic v <- 2*x + y + 1 Warning message: In 2 * x + y : longer object length is not a mul

[R] longer object length is not a multiple of shorter object length

2010-11-03 Thread Stephen Liu
Hi folks, I'm following An Introduction to R http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics to learn R. Coming to; 2.2 Vector arithmetic > v <- 2*x + y + 1 Warning message: In 2 * x + y : longer object length is not a multiple of shorter object length What does it mean?