R/rbms_organize_data.r
df_visit_season.Rd
df_visit_season Link each recorded visit to a corresponding monitoring season, this function is used in ts_monit_site
df_visit_season(ts_season, m_visit, DateFormat = "%Y-%m-%d")
data.table returned by ts_monit_season with the detail time-series of the monitoring season.
data.table or data.frame with Date and Site ID for each monitoring visit.
format used for the date in the visit data, default="%Y-%m-%d".
A data.table where each visit is attributed a monitoring year, the M_YEAR
as this can differ the date (see detail)
The value of M_YEAR
should be used as Monitoring year as this can differ form the YEAR
if the
monitoring season covers two calendar years (e.g. November to June).