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

Stephen Liu satimis at yahoo.com
Wed Nov 3 16:17:12 CET 2010


----- Original Message ----

From: David Winsemius <dwinsemius at comcast.net>
To: Stephen Liu <satimis at yahoo.com>
Cc: r-help at 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 * x + y :
>>  longer object length is not a multiple of shorter object length
>>
>> What does it mean?  How to rectify it?  Please help.  TIA

> What does this return:

> c(length(x), length(y))  # ?

c(length(x), length(y))
[1]  5 11


B.R.
Stephen L





More information about the R-help mailing list