Reputation: 1247
I am using xts
package to split the time series in to monthly, yearly, etc. The code I am using is
obsm<-split(obs, f = 'months', drop=FALSE, k = 1)
where 'obs' being the whole time series with four year data (1999-2012). I can also split the series in to years, quarters, weeks. But is there anyway where I can split the series for the time period I want. for eg every year from September to November?
Upvotes: 1
Views: 969