date_to_seasonname: Compute a season from POSIXct or Date values

View source: R/datetime.R

date_to_seasonnameR Documentation

Compute a season from POSIXct or Date values

Description

Compute a season from POSIXct or Date values

Usage

date_to_seasonname(
  x,
  lut = c("DJF", "DJF", "MAM", "MAM", "MAM", "JJA", "JJA", "JJA", "SON", "SON", "SON",
    "DJF")
)

Arguments

x

POSIXct or Date vector

lut

charcater vector of length 12. x is converted to month number and is then used as a index into this look up table

Value

charcater vector of season names, same length as x


BigelowLab/dismotools documentation built on Jan. 4, 2023, 11:24 a.m.