cbr_mutate_rates: Mutate column of RUB exchange rates with respect to currency...

Description Usage Arguments Value

View source: R/cbr_mutate_rates.R

Description

Mutate column of RUB exchange rates with respect to currency and date of exchange

Usage

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"
)

Arguments

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

Value

data frame with mutated column of RUB exchange rates


krasovskyd/cbrCurrency documentation built on Dec. 21, 2021, 7:45 a.m.