date_to_seasonprior: Compute the prior season specified for each provided date.

View source: R/datetime.R

date_to_seasonpriorR Documentation

Compute the prior season specified for each provided date.

Description

Consider a spring (MAM) input date, the prior MAM will be 1 year before, while the prior DJF will be just three months before.

Usage

date_to_seasonprior(x)

Arguments

x

POSIXct or Date vector

Value

tibble with 5 columns of POSIXct vectors

  • x original input dates

  • DJF prior winter start dates

  • MAM prior spring start dates

  • JJA prior summer start dates

  • SON prior autumn start dates


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