Description Usage Arguments Value
An xts matrix of returns (1 or more columns is assumed). The matrix is first converted to an equity curve so intermediate prices can be interpolated.
1 | interpolate_returns(rets, value = c("prices", "returns"))
|
rets |
The xts matrix of returns, which contains some NAs to be interpolated. |
value |
Specifies whether the return value is an xts of returns ("returns") or a normalized equity curve "prices"). Default is "prices". |
Either an xts of returns or an xts of the equity curve, depending on the value argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.