powered by
Retrieve current conversion rate between two currencies as well as historical rates.
currency_converter( from = "EUR", to = "USD", start = NULL, end = NULL, period = "ytd", interval = "1d" )
A data.frame.
data.frame
Currency to convert from.
Currency to convert to.
Specific starting date. String or date object in yyyy-mm-dd format.
String
date
yyyy-mm-dd
Specific ending date. String or date object in yyyy-mm-dd format.
Length of time. Defaults to 'ytd' Valid values are:
'ytd'
'1d'
'5d'
'1mo'
'3mo'
'6mo'
'1y'
'2y'
'5y'
'10y'
'max'
Time between data points. Defaults to '1d' Valid values are:
'1h'
'1wk'
# \donttest{ currency_converter('GBP', 'USD', '2022-07-01', '2022-07-10') currency_converter('GBP', 'USD', period = '1mo', interval = '1d') # }
Run the code above in your browser using DataLab