getMonths: Generate a sequence of months

Description Usage Arguments

View source: R/date_utils.R

Description

This function will return a sequence of the months between the dates from and to. The dates in the sequence that is returned are on the first day of each month.

Usage

1
getMonths(from, to, floorFrom = TRUE, ceilTo = TRUE)

Arguments

from, to

Start and end of the date sequence (these should be of class Date.

floorFrom

If TRUE the first element in the sequence is the start of the first month before from, otherwise from.

ceilTo

If TRUE the last element in the sequence is the start of the first month after to, otherwise to.


laduplessis/beastio documentation built on Dec. 14, 2021, 7:04 p.m.