ts_monit_site: ts_monit_site Augment the time series in m_season with all...

ts_monit_siteR Documentation

ts_monit_site Augment the time series in m_season with all sites and visits with "zeros", leaving all non visited day with and <NA>

Description

ts_monit_site Augment the time series in m_season with all sites and visits with "zeros", leaving all non visited day with and <NA>

Usage

ts_monit_site(
  ts_season,
  m_visit,
  DateFormat = "%Y-%m-%d",
  expand_sy = "FALSE"
)

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

expand_sy

logical for all site-year combination to be kept, if FALSE, only sampled site-year combination are kept.

Value

A data.table with a complete time-series where absences have been implemented and that is ready to receive counts

Author(s)

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

See Also

df_visit_season


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