period_ends: Period ends

Description Usage Arguments Details Value

View source: R/period_ends.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.


ppd-dpp/calpr documentation built on June 25, 2020, 12:09 a.m.