season: Function to determine season of a date.

View source: R/lubridate_supplements.R

seasonR Documentation

Function to determine season of a date.

Description

The season coding is based on months of year.

Usage

season(date, hemisphere = "northern", as.factor = FALSE, as.title = FALSE)

Arguments

date

POSIXct or Date vector.

hemisphere

Which hemisphere to use? Can be "northern" or "southern".

as.factor

Should the return be an ordered factor, not a numeric vector?

as.title

When as.factor is TRUE, should the labels be in "title-case"?

Value

Numeric or ordered factor vector with the length of date.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.