iso.CurrencyPair {fmbasics} | R Documentation |
Get ISO
Description
The default method assumes the ISO can be accessed as if it were an attribute
with name iso
(e.g. x$iso
). The method for CurrencyPair
concatenates
the ISOs of the constituent currencies (e.g. iso(AUDUSD())
returns
"AUDUSD") while the methods for CashIndex
and IborIndex
return the ISO of
the index's currency.
Usage
## S3 method for class 'CurrencyPair'
iso(x)
iso(x)
## Default S3 method:
iso(x)
## S3 method for class 'IborIndex'
iso(x)
## S3 method for class 'CashIndex'
iso(x)
Arguments
x |
object from which to extract an ISO |
Value
a string of the ISO
Examples
library("lubridate")
iso(AUD())
iso(AUDUSD())
iso(AUDBBSW(months(3)))
iso(AONIA())
[Package fmbasics version 0.3.0 Index]