Description Usage Arguments Value
View source: R/complement-data.R
Complement the data with the following functionalities:
Proxy: Add "proxied" asset that is a copy of "base" asset
Spread: Spread non-daily returns to daily returns of "spreaded" asset
Regress: Extend "regressed" asset returns as a linear function of "base" asset returns
Mix: Add "mixed" asset whose returns are the average of "base" assets returns for each day.
1 | complement_data(data, config)
|
data |
A data frame containing asset, date and return columns. |
config |
A list of lists containing the complement methods and arguments. They are
|
A data frame containing the following columns:
asset
date
return
and arranged by asset and date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.