Description Usage Arguments Details Value See Also
This function is the creator of an S3 class of structured dataset for a portfolio.
1 |
data |
an object that contains the components of the portfolio. |
Names |
a character vector indicating the components of the portfolio. |
weights |
an object of class |
V0 |
the total value of the portfolio. |
This function, together with stocks
and addOptions
,
forms the bottom layer of the risk calculation system, which performs data structuring.
This function subsets the data and only keeps the components of the portfolio (and the underlyings if components are options).
The function support portfolio weights defined both in value and number of shares, which is supported by
portfolioWeight
function.
If weights
is a numerical vector,
it is regarded as portfolio weights in value, not in number of shares.
An object of class portfolioData
.
stocks
, addOptions
, GBM
, portfolioWeight
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.