Re: [R] Where's iris?

From: Ruben Roa <RRoa_at_fisheries.gov.fk>
Date: Thu 14 Jul 2005 - 21:49:27 EST


> -----Original Message-----
> From: Gabor Grothendieck [mailto:ggrothendieck@gmail.com]
> Sent: 13 July 2005 20:30
> To: Ruben Roa
> Cc: R-help@stat.math.ethz.ch
> Subject: Re: [R] Where's iris?
>
>
> On 7/13/05, Ruben Roa <RRoa@fisheries.gov.fk> wrote:
> > Hi:
> > Where is the iris data set actually
> > located in the R 2.1.0 folder (under W XP)?
> > Is it a text file or it is a binary file?
> > Ruben
>
> Uwe has already explained how to get it in text
> form; however, if you are curious about its original
> format in R then its actually stored in iris.R as
> R source code which you can view at:
>
> https://svn.r-project.org/R/trunk/src/library/datasets/data/iris.R
>
> (or download the entire R source and get it from there).

The iris.R in the website and the iris.R i get from dump("iris",file="iris.R") from R 2.1.0 W XP are different (the file from dump() describes the factors using structure(as.integer(c()),.Label=c(),class="factor") whereas the file in the website uses
gl=(,,label=c()),
but the difference did not matter. I wanted to emulate the file format in a txt *.R file with my own data and i could do it with the most helpful advice by you and Uwe. Thank you!
Ruben



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 14 23:53:24 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:40 EST