[R] how to create many objects with sequencial names?
jim holtman
jholtman at gmail.com
Sun Aug 27 04:22:38 CEST 2006
Yes there is with statements like:
assign(paste('m', i, sep='', value)
But I would suggest that you put the values in a list to make it
easier to access since all the data is in a single object. You could
do it in a loop:
result <- list()
for(i in 1:100){
......computation.....
result[[i]] <- yourResult
}
On 8/26/06, Wensui Liu <liuwensui at gmail.com> wrote:
> Dear Lister,
>
> Is there a way to create many objects with sequencial names, say lm1,
> lm2...lm100?
>
> Thanks.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list