[R] FW: getting time series into r
Ben Bolker
bbolker at gmail.com
Mon May 23 22:31:57 CEST 2011
Heiman, Thomas J. <theiman <at> mitre.org> writes:
> tmp <- read.table("baltimore.csv", sep = " ") ##This is timeseries 2
> z <- zoo(tmp[, 2:20], as.Date(as.character(tmp[, 1]), format = "%y %m %d"))
>
> tmp1 <- read.table("baltimorefludata.csv", sep = " ") ##This is timeseries 1
> z2 <- zoo(tmp[,2], as.Date(tmp[, 1]), format = "%m %d %y"))
>
I think you need format="%m/%d/%Y"
More information about the R-help
mailing list