Skip to contents

List the currencies in a rate table

Usage

list_currencies(rates = NULL)

Arguments

rates

Rate table; NULL (default) for the bundled currency_rates.

Value

A character vector of currency codes.

Details

A quick way to see which codes convert_currency() will accept from the bundled snapshot (or from a rates table you pass). Aliases such as "RMB" are not listed – they resolve to their ISO code (here "CNY").

Examples

list_currencies()
#>  [1] "USD" "EUR" "GBP" "JPY" "CNY" "CHF" "CAD" "AUD" "NZD" "SEK" "NOK" "DKK"
#> [13] "PLN" "CZK" "HUF" "RON" "BGN" "TRY" "RUB" "UAH" "BRL" "MXN" "ARS" "CLP"
#> [25] "COP" "INR" "IDR" "KRW" "SGD" "HKD" "TWD" "THB" "MYR" "PHP" "VND" "ZAR"
#> [37] "AED" "SAR" "ILS"