startEnd: startEnd

View source: R/startEnd.R

startEndR Documentation

startEnd

Description

Returns two date variables representing the starting date and ending date for a combination of paStart, paLong, and year

Usage

startEnd(paStart, paLong, year)

Arguments

paStart

numeric integer specifying the starting month for the period of analysis, 1<=paStart<=12, default is 10

paLong

numeric integer specifying the length of the period of analysis, in months, 1<=paLong<=12, default is 12

year

integer year, which is the calendar year in which the period ends

Value

Date list

Examples

paStart <- 10
paLong <- 12
year <- 1999
startEnd(paStart, paLong, year)

EGRET documentation built on April 18, 2023, 5:09 p.m.