Checks whether object inherits from Currency class

is.Currency(x)

Arguments

x

an R object

Value

TRUE if x inherits from the Currency class; otherwise FALSE

Examples

is.Currency(AUD())
#> [1] TRUE