Description Usage Arguments Details Value Author(s) Examples
This function extracts the investment exposures from one or more portfolios for the specified investment segments.
1 | extract.segments(portfolios, segments, collapse = FALSE)
|
portfolios |
A vector or matrix that defines the portfolios |
segments |
A vector or list of vectors that defines the investment segments |
collapse |
A logical value. If TRUE, only the investment segment exposures are returned |
If the collapse
argument is FALSE, the segment complement exposures are zero and
the investment segment exposures are taken from the portfolios. If the collapse
argument is TRUE, then only the investment segment exposures are returned. The private function
vector.extract.segments
is used to perform the extraction. For matrices of investment
weights, the apply function is used with vector.extract.segments
to obtain a matrix of
extracted segment weights. The transpose of this matrix is returned.
A vector for one portfolio or a matrix for multiple portfolios.
Frederick Novomestky fn334@nyu.edu
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.