[R] Wrong csv data?
Grigory Fateyev
gfborn at gmail.com
Fri Jan 25 12:52:46 CET 2013
Hello PIKAL Petr!
On Fri, 25 Jan 2013 10:09:54 +0000 you wrote:
> Hi
>
> Attachment did not went through. Can you show us result of
> dput(head(data)) or output from str(data)?
>
> Anyway I wonder how time can became temperature. R is smart but I do
> not believe that during import it somehow gets a local temperature at
> given time and put it in your data.
Thank you for the answer. The problem was solved just remove traling
";" at the end every row. Header line hasn't traling semicolon.
sed -e "s/;\r/\r/g" file.csv > file.csv_tmp
>
> Regards
> Petr
>
>
> > -----Original Message-----
> > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> > project.org] On Behalf Of Grigory Fateyev
> > Sent: Thursday, January 24, 2013 11:58 AM
> > To: r-help at r-project.org
> > Subject: [R] Wrong csv data?
> >
> > Hello!
> >
> > I have csv file (attached) with any data, where first column is
> > time. When I read into data.frame become temperature values. What
> > it can be?
> >
> > data <- read.csv("rp5_vladimir2010.csv", colClasses = "character",
> > sep = ";") names(data) data$Time data[,1]
> >
> > --
> > Всего наилучшего!
> > greg [at] dobroe [dot] ru Григорий.
--
Всего наилучшего!
greg [at] dobroe [dot] ru Григорий.
More information about the R-help
mailing list