instrument {PMwR} | R Documentation |
Retrieve or Change Instrument
Description
Generic function for retrieving and changing instrument information.
Usage
instrument(x, ...)
instrument(x, ...) <- value
Arguments
x |
an object |
... |
arguments passed to methods |
value |
an object |
Details
Generic function: extract or, if meaningful, replace instrument information
Value
when used to extract instrument, a character vector
Author(s)
Enrico Schumann
References
Schumann, E. (2023) Portfolio Management with R. https://enricoschumann.net/R/packages/PMwR/manual/PMwR.html
See Also
Examples
jnl <- journal(instrument = "A",
amount = 100,
price = 1)
instrument(jnl)
instrument(jnl) <- "B"
[Package PMwR version 0.19-5 Index]