Hi,
Is it possible (and how) to use a variable value to create a name of a new R
variable? I want to do something like this:

for (i in 1:3) {
newvarialbe_#i# = somedata
}

where #i# is a value stored by i. In the first loop, there will be
newvariable_1, in second newvariable_2 and so on.
Thanks in advance,
Maciek

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to