Learn R Programming

fixerapi (version 0.1.6)

fixer_latest: Latest exchange rates

Description

Returns a tibble with the most recently available currency conversion data available from the Fixer API.

Usage

fixer_latest(base = "EUR", symbols = NULL)

Arguments

base

The base currency to index other currencies against. Defaults to "EUR". Other base currencies are only available on paid plans.

symbols

A character vector of the symbols of currencies to return exchange rates for, or a string for a single currency. Defaults to NULL and returns all available currencies. See fixer_symbols for details on symbol options.

Value

A tibble with the latest available currency exchange data.

Examples

Run this code
# NOT RUN {
today <- fixer_latest()

today_usd <- fixer_latest(base = "USD")

today_symbols <- fixer_latest(base = "USD",
                              symbols = c("EUR", "JPY", "CAD"))

# }

Run the code above in your browser using DataLab