add.identifier {FinancialInstrument} | R Documentation |
Add an identifier to an instrument
Description
Add an identifier to an instrument
unless the instrument
already has that identifier.
Usage
add.identifier(primary_id, ...)
Arguments
primary_id |
primary_id of an |
... |
identifiers passed as regular named arguments. |
Value
called for side-effect
Author(s)
Garrett See
See Also
Examples
## Not run:
stock("XXX", currency("USD"))
add.identifier("XXX", yahoo="^XXX")
getInstrument("^XXX")
add.identifier("^XXX", "x3")
all.equal(getInstrument("x3"), getInstrument("XXX")) #TRUE
## End(Not run)
[Package FinancialInstrument version 1.3.1 Index]