get a portfolio object
Get a portfolio object conssting of either a nested list (
or a pointer to the portfolio in the
.blotter environment (
1 2 3
string identifying portfolio
dates subset, not yet supported
the environment to retrieve the portfolio from, defaults to .blotter
Portfolios in blotter are stored as a set of nested, hashed, environments.
getPortfolio function returns a nested list. If you are unsure, use this function.
.getPortfolio function returns a pointer to the actual environment.
Environments in R are passed by reference, and are not copied by the
assignment operator. Any changes made to the environment returned by
.getPortfolio are global. You have been warned.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.