iso: Get ISO

Description Usage Arguments Value Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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

1
2
3
4
5
library("lubridate")
iso(AUD())
iso(AUDUSD())
iso(AUDBBSW(months(3)))
iso(AONIA())

fmbasics documentation built on May 2, 2019, 6:22 a.m.