Learn R Programming

metR (version 0.3.0)

season: Assign seasons to months

Description

Assign seasons to months

Usage

season(x, lang = c("en", "es"))

Arguments

x

A numeric vector of months or a vector of dates

lang

Language to use.

Value

A factor vector of the same length as x with the trimestre of each month.

Examples

Run this code
# NOT RUN {
season(1, lang = "en")
season(as.Date("2017-01-01"))

# }

Run the code above in your browser using DataLab