currency_convert: Convert between currencies using the Open Exchange Rates API

Description Usage Arguments

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.


lucr documentation built on May 2, 2019, 2:02 p.m.