A quick way to break up a large xts
object by standard time periods; e.g. 'months', 'quarters', 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.