df_visit_season: df_visit_season Link each recorded visit to a corresponding...

df_visit_seasonR Documentation

df_visit_season Link each recorded visit to a corresponding monitoring season, this function is used in ts_monit_site

Description

df_visit_season Link each recorded visit to a corresponding monitoring season, this function is used in ts_monit_site

Usage

df_visit_season(ts_season, m_visit, DateFormat = "%Y-%m-%d")

Arguments

ts_season

data.table returned by ts_monit_season with the detail time-series of the monitoring season.

m_visit

data.table or data.frame with Date and Site ID for each monitoring visit.

DateFormat

format used for the date in the visit data, default="%Y-%m-%d".

Details

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).

Value

A data.table where each visit is attributed a monitoring year, the M_YEAR as this can differ the date (see detail)

Author(s)

Reto Schmucki - reto.schmucki@mail.mcgill.ca

See Also

ts_monit_season


RetoSchmucki/rbms documentation built on Feb. 14, 2024, 3:17 a.m.