[R] re name vector

2009-01-16 Thread canadiangirl19
I´m a really R beginer, so I have a simply question. I would like to rename a vector in a loop. I´d like to have as output: vector1-whatever vector2-whatever vector3-whatever etc.. so I thought it´s easily for (s in c(1:3)){ vectorn- whatever } but I´m getting an error. cheers -- View

Re: [R] re name vector

2009-01-16 Thread Gabor Grothendieck
Its a FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f On Fri, Jan 16, 2009 at 6:58 AM, canadiangirl19 canadiangir...@sms.at wrote: I´m a really R beginer, so I have a simply question. I would like to rename a vector in a loop. I´d like to