insert_season: Insert the season into the dataframe passed to the function

Description Usage Arguments Value Examples

View source: R/Season.R

Description

This function produces a season variable stored as a factor.

Usage

1
insert_season(data, date_col, hemis = south)

Arguments

data

a dataframe containing the data

date_col

Date variable containing the date to be used in calculating season.

hemis

Hemisphere for calculating season "north" or "south"

Value

the original dataframe with the season variable included

Examples

1
2
3
4
5
insert_season(waves, date_time)

#using dplyr
library(dplyr)
waves %>% insert_season(date_time)

towananalytics/tatools documentation built on Jan. 24, 2022, 7:31 p.m.