[R] re name vector
Gabor Grothendieck
ggrothendieck at gmail.com
Fri Jan 16 13:18:15 CET 2009
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 <canadiangirl19 at 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 have as output:
>
> vector1<-whatever
> vector2<-whatever
> vector3<-whatever
> etc..
>
> so I thought it´s easily
> for (s in c(1:3)){
> vector"n"<- whatever
> }
>
> but I´m getting an error.
>
> cheers
> --
> View this message in context: http://www.nabble.com/rename-vector-tp21497882p21497882.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list