[R] trouble reading in datasets

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Oct 26 17:46:27 CEST 1999

> Clayton Springer <csprin at brandybuck.ca.sandia.gov> writes:
> > Dear All,
> > 
> > I was trying to follow some of the examples in Venables and Ripley "Modern 
applied ... with S-plus"
> > I have downloaded a copy of the iris data set and loaded into R. :
> > 
> > however I cannot use the apply command (from p47):

> Actually, that isn't the end of the story, because the iris data that
> comes with S is stored as a 3-way array, rather than a dataframe. The
> way to convert from one to the other is -ahem- left as an exercise....

Or you could look in the V&R scripts for R (in the VR bundle on CRAN) to
see that the R version called `iris3' is what you want. This is even
mentioned in the on-line R Complements to V&R (www.stats.ox.ac.uk/pub/MASS2
for the second edition, MASS3 for the third edition).

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list