Description Usage Arguments Value Examples
This function implements an apply method for xts objects. I works in exactly
the same was as apply does, but makes sure you get back an xts object. In
some cases the standard apply mehtods return strange resutls when applied to
xts objects. This function handles the operations correctly and will do
column-wise apply when "margin"
is set to 2, and row-wise when
"margin"
is set to 1. "cFUN"
fills the roll of the the standard
FUN in apply methods.
1 |
x |
an xts object over which you want to apply some function. |
cFUN |
the function you wish to apply. |
margin |
controls whether you want column-wise apply (margin = 2) or row-wise apply (margin = 1). Defaults to margin = 2. |
an xts object where cFUN has been applied to the columns or rows.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.