Description Usage Arguments Details
Creates xts of returns
1 2 | get_returns(x, is_prices = TRUE, roll = 1, halflife = 1,
is_cumulative = FALSE)
|
x |
xts containing prices or returns |
is_prices |
boolean indicating whether x contains prices or returns |
roll |
rolling window |
halflife |
half life as percentage of roll |
is_cumulative |
boolean indicating whether cumulative return should be computed |
xx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.