Displaying 1 result from an estimated 1 matches for "wvts".
Did you mean:
wits
2012 Sep 27
1
How does "apply.monthly" function works (xts package)
...of them.
I've read that package xts can help me with this issue, so I have done the
following script:
*ini_week<-as.Date("2010-09-19")
final_week<-seq(ini_week, length.out=104, by = "1 week")
vts<-read.csv("C:/DATA.csv",header = TRUE)
vts<-vts[,2]
wvts<-xts(vts, order.by=final_week)
mes<-apply.monthly(wvts,sum)
*A portion of the result is this one:
[,1]
2010-09-26 2.9
2010-10-31 8.5
2010-11-28 5.8
2010-12-26 5.5
2011-01-30 7.5
....
It seem to be quite well however I have still the question about how does
it work...I mean,...