fmbasics (version 0.3.0)

iso.CurrencyPair: 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 CurrencyPair
iso(x)

iso(x)

# S3 method for default iso(x)

# S3 method for IborIndex iso(x)

# S3 method for CashIndex iso(x)

Arguments

x

object from which to extract an ISO

Value

a string of the ISO

Examples

Run this code
# NOT RUN {
library("lubridate")
iso(AUD())
iso(AUDUSD())
iso(AUDBBSW(months(3)))
iso(AONIA())
# }

Run the code above in your browser using DataLab