Displaying 1 result from an estimated 1 matches for "itpower15minv2".
2012 Feb 18
2
still need read.zoo command help
...LL,
regular=FALSE,
header=FALSE,
sep=",",
index.column=1)
library(zoo)
library(chron)
#this code from Gabor Grothendieck - thanks
# 15 minute aggregate averages
m15 <- times("00:15:00")
ag15 <- aggregate(z, trunc(time(z), m15), mean)
write.zoo(ag15,file="ITPower15minv2.txt",index.name="Time",row.names=FALSE,col.names=FALSE)
# this may also have a problem.
#2011-10-11 2011-10-11 is all that is written in the file
#data in the "Kevin-0-comma-ITPower.txt starts like this..
10/11/2011 23:00:06,432.12
10/11/2011 23:02:09,432.42
10/11/2011 23:05:0...