classify_season: Classify season of observations

Description Usage Arguments Value

View source: R/classify_season.R

Description

Given a timeseries of observations and a list of which month falls in which season, classify what season each observation falls into.

Usage

1
2
3
4
5
classify_season(
  df,
  seasons = list(summer = c(6, 7, 8), fall = c(9, 10, 11), winter = c(12, 1, 2), spring
    = c(3, 4, 5))
)

Arguments

df

the input data frame, with a column for "date" that has the observation datetime in POSIXct.

seasons

a list of the names of each season and the vectors of which months fall into each season (e.g., list(summer = c(6, 7, 8), fall = c(9, 10, 11))).

Value

df, the input data frame with a column added for the season of the observation.


WDNR-Water-Use/CSLSlevels documentation built on Nov. 21, 2020, 9:13 a.m.