Learn R Programming

climtrends (version 1.0.6)

FirstMonthOfSeason: Get the first/last month of a season

Description

FirstMonthOfSeason returns the first month number for a given season 1 12, 2 3, 3 6, 4 9. LastMonthOfSeason returns the last month number for a given season 1 2, 2 5, 3 8, 4 11.

Usage

FirstMonthOfSeason(intSeason)

Arguments

intSeason
season

Value

first/last month of a season.

Examples

Run this code
FirstMonthOfSeason(1) # Winter
FirstMonthOfSeason(2) # Spring
FirstMonthOfSeason(3) # Summer
FirstMonthOfSeason(4) # Fall

Run the code above in your browser using DataLab