[R] Missing datasets (2.13.1)

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Aug 15 09:51:21 CEST 2011



On 15.08.2011 06:33, Sierra Bravo wrote:
> Dear all
> How does one resolve the variance between the actual availability of data
> sets in the default implementation with those mentioned in the
> documentation?
>
> I am unable to attach some of the datasets, even though help() is available
> for the same datasets. For example, "ToothGrowth" is a dataset that is
> widely mentioned in the documentation as being part of the base install.
> help("ToothGrowth") does bring up help.
>
> However, the dataset is missing from the install as I'm unable to attach()
> it. (An aside: why is the data() command silent on a missing dataset ?
> data("ToothGrowth") is silent, whereas attach("ToothGrowth") fails loudly).
>
> Where can I locate and integrate the missing datasets into my base install?


Just type
  ToothGrowth
and you will see the data.

In case you really want to attach it (which I really do not recommend), use
  attach(ToothGrowth)
without any quotes, since you do not want to attach a file with that 
name but the object.

Uwe Ligges


>
> TIA/cheers
>
>
> s.b.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Missing-datasets-2-13-1-tp3743896p3743896.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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