get_season: Get season name

View source: R/date_funcs.R

get_seasonR Documentation

Get season name

Description

Given a date object, get the name of the season.

Usage

get_season(date, version = 1)

Arguments

date

Date object

version

Number (1, 2, or 3) - system to use to separate seasons (see Details)

Details

There are 4 different options for separating seasons: Version 1: Astronomical system (e.g. Spring = March 20th - June 20th) Version 2: Each season is 3 months, Spring is March-May Version 3: Each season is 3 months, Spring is Feb-April Version 4: Each season is 3 months, Spring is April-Jun (this keeps all the "seasons" within the same year)

Value

String (either Spring, Summer, Fall, or Winter)


BIO-RSG/oceancolouR documentation built on April 25, 2024, 12:28 p.m.