On Fri, Feb 17, 2012 at 8:16 PM, Hasan Diwan wrote:
> Henry,
> You're reading a CSV with read.zoo. This is not likely to work. The
> way I'd do this is:
> data <- read.csv('/tmp/Kevin-0-comma-ITPower.txt', header=FALSE)
> z <- zoo(data[,2], order.by=as.POSIXct(data[,1], format='%d/%m/%y
> %H:%M:%S
On Fri, Feb 17, 2012 at 7:54 PM, Henry wrote:
> The problem now is it looks like my read.zoo isn't working.
> Sorry for sort of double posting.
> Someone please assist if you have time with my read.zoo command line.
> my data is as just below this line, a time stamp and a real number with a
> comm
Henry,
You're reading a CSV with read.zoo. This is not likely to work. The
way I'd do this is:
data <- read.csv('/tmp/Kevin-0-comma-ITPower.txt', header=FALSE)
z <- zoo(data[,2], order.by=as.POSIXct(data[,1], format='%d/%m/%y
%H:%M:%S') # or whatever your format actually is...
-- H
Sent from my mo
The problem now is it looks like my read.zoo isn't working.
Sorry for sort of double posting.
Someone please assist if you have time with my read.zoo command line.
my data is as just below this line, a time stamp and a real number with a
comma sep.
10/11/2011 23:00:06,432.12
z=read.zoo("Kevin-0-
4 matches
Mail list logo