find_season {CalcThemAll.PRM}R Documentation

Find Sample's Season (Wet or Dry)

Description

Find Sample's Season (Wet or Dry)

Usage

find_season(wet_season_start_dates, sampling_dates, wet_season_length = 182)

Arguments

wet_season_start_dates

A vector of dates signifying the first day of the wet season for site year combinations.

sampling_dates

A date vector of sampling dates. Must be in yyyy-mm-dd format.

wet_season_length

The length of the wet season in days.

Value

A character vector

Examples

dates <- as.Date(c("2014-12-04", "2014-10-30", "2015-11-12"))
wet_start_dates <- as.Date(c("2014-10-04", "2014-12-30", "2015-09-12"))
Seasons <- find_season(wet_start_dates, sampling_dates = dates)
#cut of date for the sampling year will be last day of June

[Package CalcThemAll.PRM version 1.1.1 Index]