[R] load all data sets in a package
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sun Apr 18 18:49:51 CEST 2010
On 18.04.2010 12:59, carol white wrote:
> Hi,
> It might be a simple question but how to load all data sets of a package? It's possible to get the list of data sets in a package with
>
> v= data(package = package_name)
> v[3]$results[,3]
>
> but data(get(v[3]$results[,3])) doesn't work.
See ?data that tells you to use:
data(list = v$results[,3])
Uwe Ligges
> Thanks
>
> Carol
>
> ______________________________________________
> 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.
More information about the R-help
mailing list