find_Sampling_Year {CalcThemAll.PRM}R Documentation

Find Sampling Year

Description

Find Sampling Year

Usage

find_Sampling_Year(dates, wet_season_split = 7)

Arguments

dates

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

wet_season_split

The first month of the sampling year in numeric e.g. July = 7. July (7) is used as the default as this is the first month of the Queensland wet season.

Value

A factored character vector

Examples

dates <- as.Date(c("2014-03-04", "2014-12-30", "2015-06-12"))
sampling_years <- find_Sampling_Year(dates) #cut of date

[Package CalcThemAll.PRM version 1.1.1 Index]