These helper functions allow one to easily create or add to an object of class BLViews or COPViews through the use of R's built-in data editor.
createBLViews(allAssets, numAssetViews = 1, assetSubset = NULL,
mode = c("editor", "Window"))
updateBLViews(views, includeNullViews = FALSE, numNewViews = 0, assets = NULL)
createCOPViews (allAssets, numAssetViews = 1, assetSubset = NULL,
mode = c("editor", "Window"))
A character vector holding the names of all of the assets in one's "universe"
The number of views to form. Should be less than or equal to the total number of assets
A character vector of assets that is a subset of allAssets
. Views will be formed only on this subset. By default, assetSubset = allAssets
Mode of GUI. Currently unused
Object of class BLViews
Set of assets to form or modify views on. If NULL, will use the full set of assets
When updating views, should the 0 columns of the pick matrix be included?
In updateViews
, this is the number of new views to add
An object of class BLViews
or COPViews
that holds all of the views created.
createCOPViews
does not allow one to specify the distributions of the views at the moment. Such a feature
may be added later through another GUI. At the moment the object returned by this function has its distribution
set to a default. updateViews
allows one to modify pre-existing views
# NOT RUN {
# }
# NOT RUN {
views <- createBLViews(colnames(monthlyReturns), 2)
# }
Run the code above in your browser using DataLab