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
Ruben Roa 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?It is a special binary file in package datasets in the binary distribution. Just dump() or write.table() on the data to get a text representation of the data. Uwe Ligges> Ruben > > ______________________________________________ > R-help at 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
help.search("iris") tells you. You should always try R's built-in help resources **before** posting. -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ruben Roa > Sent: Wednesday, July 13, 2005 6:55 AM > To: R-help at stat.math.ethz.ch > Subject: [R] Where's iris? > > 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 > > ______________________________________________ > R-help at 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 >
On 7/13/05, Ruben Roa <RRoa at 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? > RubenUwe 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).
> -----Original Message----- > From: Gabor Grothendieck [mailto:ggrothendieck at gmail.com] > Sent: 13 July 2005 20:30 > To: Ruben Roa > Cc: R-help at stat.math.ethz.ch > Subject: Re: [R] Where's iris? > > > On 7/13/05, Ruben Roa <RRoa at 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