swfscMisc (version 1.3)

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

Examples

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

# }

Run the code above in your browser using DataLab