[R] question about string to boor?

David Winsemius dwinsemius at comcast.net
Mon Oct 10 21:14:42 CEST 2011


On Oct 10, 2011, at 12:52 PM, song_gpqg wrote:

> Hello!
> So I am handling this problem with some arrays grp1-grp7, I want to  
> write a
> loop to avoid tedious work, but I don't know how to transform string  
> to
> boor?
> For example I used
> i=1
> paste("grp",i, sep="")

?get

e.g.
get( paste("grp",i, sep="") )

> I only got "grp1" instead of grp1, which can't be manipulate using  
> mean() or
> other function.
>
> I am not sure if I make myself clear...
> THANKS!!!!
>
> Nellie
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/question-about-string-to-boor-tp3890983p3890983.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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list