[R] What's data() for?

From: yjmha69 <yjmha69_at_yahoo.com>
Date: Thu, 13 May 2010 16:43:58 -0700 (PDT)


Hi there,

>library(faraway)
>pima

    pregnant glucose diastolic triceps insulin bmi diabetes age test

1          6     148        72      35       0 33.6    0.627  50    1
2          1      85        66      29       0 26.6    0.351  31    0

>data(pima)
>pima

    pregnant glucose diastolic triceps insulin bmi diabetes age test

1          6     148        72      35       0 33.6    0.627  50    1
2          1      85        66      29       0 26.6    0.351  31    0

As you can see, I can already use pima without running data(pima), after running data(pima), it looks the same. So what's the reason to use data(pima) ?

Thanks

YJM



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. Received on Fri 14 May 2010 - 08:15:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 14 May 2010 - 09:50:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive