adapt_date_range: Split the period between start and end dates with a defined...

View source: R/timeseries.R

adapt_date_rangeR Documentation

Split the period between start and end dates with a defined interval of days

Description

The dates are converted to timestamp with function date_to_timestamp, but the inputs start_date and end_date must be of class Date and not datetime.

Usage

adapt_date_range(
  start_date,
  end_date,
  tzone = "Europe/Paris",
  interval_days = 30,
  milliseconds = T
)

Arguments

start_date

Date, start date.

end_date

Date, end date

tzone

character, time zone of the timeseries data

interval_days

integer, number of days of each query interval

milliseconds

logical, whether the timestamp variable is in milliseconds or not

Value

tibble


mcanigueral/dutils documentation built on Jan. 25, 2024, 3:34 p.m.