convert_currency: Convert prices from currency a to b

Description Usage Arguments Value Examples

Description

Convert prices from currency a to b

Usage

1
convert_currency(prices, from = "USD", to = "EUR", n = 15)

Arguments

prices

input vector with prices

from

input vector with currencies to convert from. Character with 3-letter ISO currency codes.

to

input vector with currencies to convert to. Character with 3-letter ISO currency codes.

Value

A numeric vector

Examples

1
convert_currency(equity_prices, c("USD", "HKD"), "EUR")

rengelke/tradr documentation built on Jan. 2, 2022, 2:03 p.m.