[R] a newbie question about "data"

envisage envisage at gmail.com
Thu Nov 8 05:09:36 CET 2007


Rolf, thanks for the reply, i see now.

On Nov 8, 2007 11:43 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>
>
> On 8/11/2007, at 4:26 PM, envisage wrote:
>
> > hi, I am reading Modern Applied Statistics with S 4th ed。
> > page4 have these two lines:
> >> library(MASS)
> >> data(chem) # needed in R only
> >  but I find withou the line " data(chem)"
> > I can still access chem, isn't it?
> > is it unnecessary or something i missed here?
> > thanks for the replay in advance.
>
> I don't think you're missing anything.  It appears that things have
> changed
> and that ``chem'' has become what Prof. Ripley refers to as a ``first
> class
> object'' in the MASS package.  That is it's ``there''.
>
> If you start R and execute
>
>         library(MASS)
>         ls(2)
>
> you will see ``chem'' amongst the names listed.
>
>                 cheers,
>
>                         Rolf Turner
> ######################################################################
> Attention:
> This e-mail message is privileged and confidential. If you are not the
> intended recipient please delete the message and notify the sender.
> Any views or opinions presented are solely those of the author.
>
> This e-mail has been scanned and cleared by MailMarshal
> www.marshalsoftware.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