[R] EXCEL FILE

Joel Kincaid jfkincaidsu at netscape.net
Thu May 8 22:14:10 CEST 2003



Peter Dalgaard BSA wrote:
> Those are the defaults... read.csv(file='foo.csv') should do. Use
> header=FALSE if the header is absent. Notice also that in some
> locales, CSV files have "," for decimal separator and ";" for the
> value. That's where read.csv2 is relevant.
> 

This will save me some typing...
and also I goofed with the orginal specification:
 > Joel Kincaid <jfkincaidsu at netscape.net> writes:
 >
 >
 >>Use 'save as' in excel to create 'foo.csv' and then
 >>
 >>read.csv(file='foo.csv',sep',',header=T)
                ^^^^^                       Should have (unnecessarily :) written "sep=','" rather 
than the
syntax error inducing "sep','"      

Cheers, Joel




More information about the R-help mailing list