currency_convert: Convert between currencies using the Open Exchange Rates API

Description Usage Arguments

View source: R/api.R

Description

Uses the Open Exchange Rates API to convert a series of amounts between two currencies.

Usage

1
currency_convert(x, from = "USD", to, key, ...)

Arguments

x

a vector of amounts, formatted as integer or numeric values.

from

the currency x is currently in. US Dollars by default.

to

the currency you want x to be in.

key

your Open Exchange Rates API key. See their access plans (particularly the 'forever free' plan linked at the bottom).

...

further arguments to pass to httr's GET function.


KevinPedroza/lucr documentation built on Dec. 2, 2019, 12:03 a.m.