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 is
Hi,
On Tue, Dec 7, 2010 at 3:01 PM, madr madra...@interia.pl 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
-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
In datamatrix[, y
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?
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
- Original Message
From: David Winsemius dwinsem...@comcast.net
To: Stephen Liu sati...@yahoo.com
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
On Nov 3, 2010, at 11:17 AM, Stephen Liu wrote:
- Original Message
From: David Winsemius dwinsem...@comcast.net
To: Stephen Liu sati...@yahoo.com
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
7 matches
Mail list logo