[R] RE:
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Tue Nov 9 16:34:33 CET 1999
Martyn Plummer <plummer at 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 at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list