A package to acquire the EUR/USD exchange rates from the Exchange Rates API and format the numbers as euros. It also allows for easy conversion of USD to EUR.
This package was created as the take-home assignment for Mastering R skills at CEU, Budapest.
xchangeR
is not on CRAN yet, please install from GitHub:
remotes::install_github('szigony/xchangeR')
eurusd
eurusds
date_from
- The start of the range.date_to
- The end of the range.last_x_days
- Return the exchange rates for the last X days compared to date_to
or today.convert_usd_to_eur
usd_amount
- The amount in USD to be converted to EUR.eur
x
- The number to be formatted as Euro.uneur
x
- The string in Euro format to be transformed to number.A vignette demoing the usage of eurusds
and eur
with Bitcoin data from Binance is available here.
A website showcasing the package's capabilities was created with pkgdown
, and is available here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.