Description Usage Arguments Value
the reason for this function is that xts:apply.monthly only take one column (or the first column if called with a df), and xts::to.monthly has outputs with multiple columns (OHLC)
1 | RetToMonthly(daily.returns)
|
daily.returns |
xts object with individual returns |
xts object with monthly log return
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.