Re: [R] Where's iris?

2005-07-14 Thread Ruben Roa
 -Original Message-
 From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
 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 [EMAIL PROTECTED] 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


Re: [R] Where's iris?

2005-07-13 Thread Berton Gunter
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: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Ruben Roa
 Sent: Wednesday, July 13, 2005 6:55 AM
 To: R-help@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@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


__
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


Re: [R] Where's iris?

2005-07-13 Thread Uwe Ligges
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@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

__
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


Re: [R] Where's iris?

2005-07-13 Thread Gabor Grothendieck
On 7/13/05, Ruben Roa [EMAIL PROTECTED] 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).

__
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