Description Usage Arguments Value
View source: R/cbr_mutate_rates.R
Mutate column of RUB exchange rates with respect to currency and date of exchange
1 2 3 4 5 6 7 8 | cbr_mutate_rates(
df,
x.date = "date",
x.currency = "currency",
handleNA = FALSE,
instead_date_col = "instead_date",
rub_rate_col = "rub_rate"
)
|
df |
data frame with currencies and dates |
x.date |
[char] name of column with dates in df |
x.currency |
[char] name of column with currencies in df |
handleNA |
[bool] handle missing exchange rates (NA) by using previous available exchange date |
instead_date_col |
name of column with RUB exchange previous dates |
rub_rate_col |
name of column with RUB exchange rates |
data frame with mutated column of RUB exchange rates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.