Description Usage Arguments Value Examples
This function is just a wrapper to the 'sweep' function because the arguments to sweep are too hard to remember.
1 | applyWeights(w, R)
|
w |
the weight vector. Must have same number of elements as columns in R. |
R |
the xts object of returns or assets. |
an xts object with the weights, w, applied to R.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.