[R] iterative variable names
ligges at statistik.tu-dortmund.de
Mon Dec 5 11:18:39 CET 2011
On 05.12.2011 11:00, bcdc wrote:
> I'm trying to assign iterative names to variable, but all my attempts have
> failed. I have a loop, and for every iteration, I need to create a variable,
> and I'd like to name them iteratively, such as:
> for(i in 1:10)
> x_i<- c(values)
You actually want to create a list of objects that you return in the end.
> I need it to return ten variables: x_1, x_2, ..., x_10
> How can I do it?
> Thank you very much!
> View this message in context: http://r.789695.n4.nabble.com/iterative-variable-names-tp4159888p4159888.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> 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