instrument: Retrieve or Change Instrument

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/journal.R

Description

Generic function for retrieving and changing instrument information.

Usage

1
2
3
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. (2017) Portfolio Management with R. http://enricoschumann.net/R/packages/PMwR/manual/PMwR.html

See Also

position

Examples

1
2
3
4
jnl <- journal(instrument = "A",
               amount = 100,
               price = 1)
instrument(jnl)

enricoschumann/PMwR documentation built on Sept. 23, 2018, 5:14 a.m.