Displaying 2 results from an estimated 2 matches for "baltimorefludata".
2011 May 24
4
writing dates to a file
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 th...
2011 May 23
3
getting time series into r
...18.9
24
1013.2
24
0
20031007
58.4
24
45.3
24
1021.7
24
1016.1
24
0
]
tmp <- read.table("baltimore.csv", sep = ",") ##This is timeseries 2
z <- zoo(tmp[, 2:9], as.Date(as.character(tmp[, 1]), format = "%d %b %Y"))
tmp1 <- read.table("baltimorefludata.csv", sep = ",")##This is timeseries 1
z2 <- zoo(tmp[,2], as.Date(tmp[, 1]), format = "%d %b %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 H...