[R-SIG-Finance] Handling half hourly data from electricity markets

jim green student.northwestern at gmail.com
Tue May 1 06:53:44 CEST 2012


Hi, 

I came across this message and found:

the years function doesn't work, actuall in zoo docomentation there is no
years function..

aggregate(cbind(X1, X2, X3) ~ peak + years(Date), DF, mean)


I tried 
aggregate(cbind(X1, X2, X3) ~ peak + as.numeric(format(Date,format='%Y')),
DF, mean)
aggregate(cbind(X1, X2, X3) ~ peak + as.POSIXlt(Date)$year+1900, DF, mean)

but both don't work either..

Could someone pls advise?

Thanks!
Jim.

--
View this message in context: http://r.789695.n4.nabble.com/Handling-half-hourly-data-from-electricity-markets-tp3616106p4600106.html
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list