getWeeks: Generate a sequence of weeks

Description Usage Arguments

View source: R/date_utils.R

Description

This function will return all the weeks between from and to. The dates in the sequence are the first day of each week. The first day of the week can be set using the week_start parameter.

Usage

1
2
3
4
5
6
7
getWeeks(
  from,
  to,
  week_start = getOption("lubridate.week.start", 7),
  floorFrom = FALSE,
  ceilTo = FALSE
)

Arguments

from, to

Start and end of the date sequence (these should be date objects).

week_start

Specify the week start, default is Sunday (7)

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.