period_ends: End points for calendar periods

Description Usage Arguments Details Value

View source: R/period.R

Description

End points for calendar periods

Usage

1
period_ends(x, period, start.mon)

Arguments

x

A vector of dates.

period

One of 'month', 'quarter', or 'year'.

start.mon

Starting month of a year, beginning at 1 for January.

Details

This is a simple helper function to make a sequence of dates to cut x. There is no argument checking, and it should probably not be called directly.

Value

A pair of POSIXlt that bound x.


marberts/ppd documentation built on March 27, 2020, 7:21 p.m.