powered by
Find Sampling Year
find_Sampling_Year(dates, wet_season_split = 7)
A factored character vector
A date vector of sampling dates. Must be in yyyy-mm-dd format.
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.
dates <- as.Date(c("2014-03-04", "2014-12-30", "2015-06-12")) sampling_years <- find_Sampling_Year(dates) #cut of date
Run the code above in your browser using DataLab