powered by
Generic function for retrieving and changing instrument information.
instrument(x, ...) instrument(x, ...) <- value
when used to extract instrument, a character vector
an object
arguments passed to methods
Enrico Schumann
Generic function: extract or, if meaningful, replace instrument information
Schumann, E. (2023) Portfolio Management with R. http://enricoschumann.net/R/packages/PMwR/manual/PMwR.html
position
jnl <- journal(instrument = "A", amount = 100, price = 1) instrument(jnl) instrument(jnl) <- "B"
Run the code above in your browser using DataLab