Skip to contents

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)
#> $startDate
#> [1] "1998-10-01"
#> 
#> $endDate
#> [1] "1999-09-30"
#>