On Jul 2, 2009, at 6:47 AM, Andriy Fetsun wrote:
Hi,
Could you please help me?
I am trying to load an csv-file in R, but it works wrong!
My data is
0,0127
-0,0016
0,0113
0,0037
-0,0025
Ret<-read.csv("Ret.csv")
Ret
X0 X0127
1 0 16
2 0 113
3 0 37
4 0 25
?read.csv
read.csv(file, header = TRUE, sep = ",", quote="\"", dec=".", fill =
TRUE, comment.char="", ...)
So the default behavior is for the first line to be interpreted as
column names.
In the future please use an informative Subject line (as the Posting
Guide suggests.)
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.