Perhaps just this:
Lines <- "DATUM P1 P2
2006-11-16 425.21 423.99
2006-12-15 425.12 423.97
2007-01-16 425.16 424.06"
library(chron)
DF <- read.table(textConnection(Lines), header = TRUE, as.is = TRUE)
DF$DATUM <- chron(DF$DATUM, format = "y-m-d", out.form
Thank you _SO_ much, Petr, you helped me again. That worked like a charm,
exactly what I needed!
Cheers,
Kathi
On Thu, 27 Nov 2008 15:01:29 +0100, Petr PIKAL wrote
> Hi
>
> [EMAIL PROTECTED] napsal dne 27.11.2008 14:20:17:
>
> > Dear useRs,
> >
> > I'm struggling again with date-related stu
Dear useRs,
I'm struggling again with date-related stuff: I am using R to draw water levels
at certain measuring
stations. My data comes as a tab-delimited text file and looks like this:
DATUM P1 P2
...
2006-11-16 425.21 423.99
2006-12-15 425.12 423.97
3 matches
Mail list logo