Skip to content
Prev 167150 / 398502 Next

Warning on assignment.

It's the other way around.

You are trying to replace 10 elements (x[i]) with 20 elements (y). R
makes a "best
guess" as to how you want to do that. 10 is not a multiple of 20.

If you were trying to replace 20 elements with 10, then R would recycle them
because 20 _is_ a multiple of 10.

The safest course is always to make sure you are replacing with equal numbers.

Sarah
On Thu, Jan 15, 2009 at 1:20 PM, <rkevinburton at charter.net> wrote: