Learn R Programming

telraamStats (version 1.1.2)

seq_by_3_month: Generate sequence of intervals with three-month periods

Description

This function is used internally in the retrieve_sensor function to generate a sequence of intervals with three-month periods. It takes a start date (start_date) and an end date (end_date), and returns a data frame with two columns representing the start and end dates of each interval.

Usage

seq_by_3_month(start_date, end_date)

Value

Dataframe with a start and an end columns, each row represents 3 months period.

Arguments

start_date

Date. Start date in "yyyy-mm-dd" format.

end_date

Date. End date in "yyyy-mm-dd" format.

Examples

Run this code
seq_by_3_month(as.Date('2023-11-01'),as.Date('2024-11-01'))

Run the code above in your browser using DataLab