assign_season: Assign seasons to sampling data

Description Usage Arguments Details Value Author(s)

View source: R/assign_season.R

Description

Assign seasons to sampling data on a monthly basis or user-defined basis

Usage

1
2
assign_season(data, season = NULL, season_names = NULL,
  season_start = NULL, abb = FALSE)

Arguments

data

a vector of POSIXct dates

season

A list of seasons. Months (1-12) are assigned to different groups based on user preference. Defaults to 12 months, starting with January. Must assign a minimum of two seasons

season_names

A string vector of season names. The number of season names must match the length of the season list. A minimum of two seasons must be assigned (e.g., 'Wet', 'Dry'). Defaults to 12 months, starting with January. The number of season names must match the number of seasons

season_start

defaults to 12 months, starting with January

abb

logical, should abbreviations for month names be used? Defaults to FALSE

Details

A function used to assign seasons to sampling data and to order the seasons. This function also allows the user to designate which season should be first.

Value

Returns a vector of ordered season factors.

Author(s)

Julie Padilla


LimnoTech/limnotools documentation built on May 17, 2019, 9:10 a.m.