Description Usage Arguments Details Value Examples
Adds a column of returns to an existing table. Optionally subtracts the returns from each column of the existing table.
1 | AddFactor(factorReturns, newFactorReturns, calcExcess = FALSE)
|
factorReturns |
Tibble of existing returns with date in first column. |
newFactorReturns |
Vector of new returns with date in first column. |
calcExcess |
If FALSE, no adjustments are made. If TRUE, the newFactorReturns are subtracted from each column of the factorReturns creating excess returns. |
If the date columns do not align, the returning table will have the maximum common date range. The first column of both tables of returns be date.
Tibble with new column
1 | AddFactor(factorReturns[, 1:6], factorReturns[,c(1,7)], TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.