Learn R Programming

EGRET (version 3.0.2)

startEnd: 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

Run this code
# NOT RUN {
paStart <- 10
paLong <- 12
year <- 1999
startEnd(paStart, paLong, year)
# }

Run the code above in your browser using DataLab