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? 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.
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.
data(ToothGrowth) makes it available in your workspace.> data(ToothGrowth) > ls()[1] "ToothGrowth"> str(ToothGrowth)'data.frame': 60 obs. of 3 variables: $ len : num 4.2 11.5 7.3 5.8 6.4 10 11.2 11.2 5.2 7 ... $ supp: Factor w/ 2 levels "OJ","VC": 2 2 2 2 2 2 2 2 2 2 ... $ dose: num 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 ... Dennis On Sun, Aug 14, 2011 at 9:33 PM, Sierra Bravo <sierra1bravo at gmail.com> 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? > > > 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. >