Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
09 Nov 1999 16:34:33 +0100
Martyn Plummer <plummer@iarc.fr> writes:
> I usually do this by saving the spreadsheet in comma-separated variable
> (csv) format, and then read it into R with this command
>
> foo.dat <- read.table("foo.csv", header=TRUE, sep=",")
...which reminds me that my students keep complaining that Excel does
CSV files with comma as decimal point and semicolon as separators if
Windows is localised to Danish (and I suppose also German). At least
it is better than some other programs that would use comma for both
items(!) but I suppose we need to cater for that kind of format along
with the other CSV specialities. (BTW is there any way of
distinguishing between 2 integer columns with comma as separator and 1
column of decimal numbers with comma as decimal point??)
-- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:34:00 EST