Description Usage Arguments Details Value Note Author(s) See Also Examples
Creates a list of xts objects split along time periods.
1 2  | 
x | 
 an xts object  | 
f | 
 a 'character' vector describing the period to split by  | 
drop | 
 ignored by split.xts  | 
k | 
 number of periods to aggregate into each split. See Details.  | 
... | 
 further args to non-xts method  | 
A quick way to break up a large xts object by standard time periods; e.g. 'months', 'qaurters', etc.
endpoints is used to find the start and end of
each period (or k-periods).  See that function for valid
arguments.
If f is not a character vector, the NextMethod is
called, which would in turn dispatch to the split.zoo method.
A list of xts objects.
aggregate.zoo would be more flexible, though not as fast
for xts objects.
Jeffrey A. Ryan
endpoints, 
split.zoo, 
aggregate.zoo
1 2 3 4 5 6 7  | data(sample_matrix)
x <- as.xts(sample_matrix)
split(x)
split(x, f="weeks")
split(x, f="weeks", k=4)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.