cbr_rates_with_weekends: Get CBR rates with filled weekends

Description Usage Arguments Value Examples

View source: R/cbr_rates_with_weekends.R

Description

Very useful function, when you have costs or profits on weekend. In cbr_rates you get data without them.

Usage

1

Arguments

code

ISO code of currency. By default, USD. You can specify one of sixty possible ISO codes.

start_date

By default, 7 days ago.

end_date

By default, today.

Value

Dataframe with date and Currency to 'RUB' to Currency rate. Weekends fills last day, when exists CBR rates.

Examples

1
2
# For example, today is Monday 2019-04-29. Rates of today will be from Saturday 2019-04-27.
cbr_rates_with_weekends(start_date = '2019-04-29')

sergeymong/cbrRatesR documentation built on Feb. 23, 2020, 10:52 p.m.