history_trend_plot: History Trend Plot

View source: R/history_trend_plot.R

history_trend_plotR Documentation

History Trend Plot

Description

Get the plot of the exchange rate between 2 currencies in the time period.

Arguments

start

String with the start date. The format should be "yyyy-mm-dd", for example "2021-12-31"

end

String with the end date. The format should be "yyyy-mm-dd", for example "2021-12-31"

base

String with the code of the base currency. Defaults to CAD, the canadian dollars.

@param aim String with the code of the aim currency. Defaults to CAD, the canadian dollars.

Details

This function need the user input the start date, end date, base currency and the aim currency for getting the plot of the currency exchange rate between the 2 currencies during the time period.

Value

It will return a plot of the currency exchange rate between the base currency and the aim currency in the time period. If there is an error, it will return error and get the error message.

the plot x-axis will be the date and y-axis will be the currency exchange rate.

References

https://exchangerate.host/#/

Examples

## Not run: 
history_trend_plot("2021-12-12", "2021-12-15", "USD","CAD")
history_trend_plot("2021-01-01", "2022-01-01","USD")

## End(Not run)

ysun822/currencychecker documentation built on March 26, 2022, 2:39 a.m.