year_month_seq: generates sequence of "year_month" strings over a time period...

View source: R/year_month_seq.R

year_month_seqR Documentation

generates sequence of "year_month" strings over a time period that includes all months in the time period

Description

generates sequence of "year_month" strings over a time period that includes all months in the time period

Usage

year_month_seq(start_date, end_date)

Arguments

start_date

the start_date for the time period

end_date

the end date for the time period

Value

character vector with elements in the form "year_month". e.g. c("2018-01", "2018-02")

Examples

start <- as.Date("2018-01-07")
end <- as.Date("2018-03-01")

year_month_seq(start, end)


Tychobra/tychobratools documentation built on April 12, 2022, 12:29 a.m.