No attachment. But if your date is in the YYYYMMDD then the format syntax is ...format="%Y%m%d").
Best, --- On Mon, 5/23/11, Heiman, Thomas J. <thei...@mitre.org> wrote: From: Heiman, Thomas J. <thei...@mitre.org> Subject: [R] getting time series into r To: "R-help@r-project.org" <R-help@r-project.org> Date: Monday, May 23, 2011, 2:32 PM Hi, I am trying to get the attached following two timeseries (these are small subsets of the whole thing) into R so I can merge them using zoo. 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")) R is not recognizing Date or YEARMODA as dates..Any suggestions on what I am doing wrong or how to fix it would be greatly appreciated!!! Sincerely, tom Thomas Heiman, PhD Info Systems Eng, Sr The MITRE Corporation | Center for Enterprise Modernization Office: 703-983-2951 | thei...@mitre.org<mailto:thei...@mitre.org> [[alternative HTML version deleted]] ______________________________________________ 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. -----Inline Attachment Follows----- ______________________________________________ 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. [[alternative HTML version deleted]]
______________________________________________ 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.