Skip to contents

Takes a currency value and the currency type to be converted to as input and returns the converted currency value as per the current conversion rate.

Usage

currency_convert(value, currency1, currency2)

Arguments

value

The value of the original currency to be converted

currency1

The type of currency originally

currency2

The type of currency that the currency1 will be converted to

Value

Returns converted numeric currency

Examples

currency_convert(23, 'USD', 'CAD')
#> [1] 30.622