Skip to contents

A dated, approximate reference table of exchange rates used by convert_currency() / add_currency() when no custom rates are supplied. Rates are expressed as units of the currency per 1 US dollar (base USD). These are a convenience snapshot, not live rates – pass your own rates to the conversion helpers when accuracy matters.

Usage

currency_rates

Format

A tibble with one row per currency and columns:

currency

ISO 4217 code (e.g. "EUR").

name

Currency name.

per_usd

Units of the currency per 1 US dollar.

The snapshot date is stored in attr(currency_rates, "snapshot_date").

Source

Approximate reference snapshot. See data-raw/make_currency_rates.R.

Examples

head(currency_rates)
#> # A tibble: 6 × 3
#>   currency name          per_usd
#>   <chr>    <chr>           <dbl>
#> 1 USD      US Dollar        1   
#> 2 EUR      Euro             0.92
#> 3 GBP      British Pound    0.79
#> 4 JPY      Japanese Yen   150   
#> 5 CNY      Chinese Yuan     7.2 
#> 6 CHF      Swiss Franc      0.88
attr(currency_rates, "snapshot_date")
#> [1] "2025-01-01"