Sachin J <[EMAIL PROTECTED]> writes: > Hi Gabor, > > You are correct. The real problem is with read.csv. I am not sure why? My > data looks > > V1,V2,V3 > 11.08,21.73,13.08 > 7.08,37.73,6.08 > 7.08,11.73,21.08 .... > > read.csv("C:/Data.csv",header=TRUE,sep=",",na.strings="NA", > > dec=",", strip.white=TRUE)
If that's how it looks, then dec="," is wrong. It sets the decimal separator, so expects 11,08 etc. You want dec=".". In general, having sep and dec set to the same value is asking for trouble, and you didn't actually need to depart from the default settings, except for the strip.white bit. -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ 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