apply.periodly: Apply by period

Description Usage Arguments Details

Description

Apply a function by a standard periodicity. A more flexible version of the 'apply.*ly' family of functions in xts.

Usage

1
apply.periodly(x, FUN, period, k = 1, ...)

Arguments

x

an xts or possibly zoo object over which to apply a function

FUN

a function to apply

period

the period by which to apply the function

k

the number of periods in each aggregation

...

optional arguments to FUN

Details

Valid values for the argument on include: "us" (microseconds), "microseconds", "ms" (milliseconds), "milliseconds", "secs" (seconds), "seconds", "mins" (minutes), "minutes", "hours", "days", "weeks", "months", "quarters", and "years".


noahbullock/noahfuncs documentation built on May 23, 2019, 9:29 p.m.