Re: [R] assigning a new variable to multiple data frames

2008-12-06 Thread Gabor Grothendieck
Viewing ?assign we see that the first two arguments to assign are required but in the example shown in the question there is only one argument. Also ?assign says the first argument is "a variable name, given as a character string" which is not the case in the code in the question. Also as a matte

[R] assigning a new variable to multiple data frames

2008-12-06 Thread Georg Ehret
Dear R community, I am trying to assign a new variable (named "new") to multiple dataframes by a loop and do not succeed... Can you please help? Thank you and best regards, Georg Ehret. > c V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 1 11 21 31 41 51 61 71 81 91 2 2 12 22 32 42 52 62 72 82 92 3