Re: [R] FW: getting time series into r

2011-05-23 Thread Gabor Grothendieck
On Mon, May 23, 2011 at 4:05 PM, Heiman, Thomas J. wrote: > Hi, > > I tried to attach these files before as .csv and they did not go through.. > This time they are .txt files..  I am trying to get the attached following > two timeseries (these are small subsets of the whole thing) into R so I ca

Re: [R] FW: getting time series into r

2011-05-23 Thread David Winsemius
On May 23, 2011, at 5:16 PM, David Winsemius wrote: On May 23, 2011, at 4:31 PM, Ben Bolker wrote: Heiman, Thomas J. 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 = )) In this file you

Re: [R] FW: getting time series into r

2011-05-23 Thread David Winsemius
On May 23, 2011, at 4:31 PM, Ben Bolker wrote: Heiman, Thomas J. 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 = )) In this file you have no separators in the dates so the format would

Re: [R] FW: getting time series into r

2011-05-23 Thread Ben Bolker
Heiman, Thomas J. 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(

[R] FW: getting time series into r

2011-05-23 Thread Heiman, Thomas J.
Hi, I tried to attach these files before as .csv and they did not go through.. This time they are .txt files.. 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 = "