Learn R Programming

swfscMisc (version 1.6.5)

month2Season: Convert Months to Seasons

Description

Convert numeric month to season: Winter = Dec-Feb, Spring = Mar-May, Summer = Jun-Aug, Fall = Sep-Nov

Usage

month2Season(x)

Arguments

x

a vector of months from 1:12

Author

Eric Archer eric.archer@noaa.gov

Examples

Run this code
months <- sample(1:12, 10, rep = TRUE)
months
month2Season(months)

Run the code above in your browser using DataLab