A vector of results produced by FUN, corresponding
to the appropriate periods.
Details
Simple mechanism to apply a function to non-overlapping
time periods, e.g. weekly, monthly, etc. Different from rolling
functions in that this will subset the data based on the specified
time period (implicit in the call), and return a vector of values
for each period in the original data.
Essentially a wrapper to the xts functions
endpoints and period.apply, mainly as
a convenience.