[R] writing dates to a file
Heiman, Thomas J.
theiman at mitre.org
Tue May 24 20:34:04 CEST 2011
Hi,
I have attached the data files to this note. I use this code:
library(zoo)
z1 <- read.zoo("baltimorefludata.txt", format = "%m/%d/%Y", header = TRUE)
z2 <- read.zoo("baltimorew.txt", format = "%Y%m%d", header = TRUE)
z3<-merge(z1,z2)
write.table(z3, "fluweatherdata_baltimore2.txt", sep="\t")
R is writing the other data to the file but not the dates... Is there a way to also write the dates to the file? Thank you!!
Sincerely,
tom
Thomas Heiman, PhD
Info Systems Eng, Sr
The MITRE Corporation | Center for Enterprise Modernization
Office: 703-983-2951 | theiman at mitre.org<mailto:theiman at mitre.org>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: baltimorew.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110524/db99639e/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: baltimorefludata.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110524/db99639e/attachment-0001.txt>
More information about the R-help
mailing list