All,
For example, I have a dataset named "ABC" loaded into R
> ABC
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
and I also have a variable datasetname
> datasetname
[1] "ABC"
and I want to add this "ABC" dataset to an existing list "alldata"
> alldata <-NULL
> alldata <- as.list(alldata)
since I will have lots of datasets like "ABC" loaded to R, and have
datasetname variable record their names, I want to add all the datasets to
the list alldata by just writing one command. But I don't know to tell R
that "ABC" is a dataset's name instead of a value of variable datasetname?
Thank you all for your help!
JL
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.