date_to_seasonname | R Documentation |
Compute a season from POSIXct or Date values
date_to_seasonname( x, lut = c("DJF", "DJF", "MAM", "MAM", "MAM", "JJA", "JJA", "JJA", "SON", "SON", "SON", "DJF") )
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 |
charcater vector of season names, same length as x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.