set_anchor: set_anchor Add Anchors of "zeros" at determined distance on...

View source: R/rbms_organize_data.r

set_anchorR Documentation

set_anchor Add Anchors of "zeros" at determined distance on each side of the monitoring season with specific weight (length), this function is used by ts_monit_season()

Description

set_anchor Add Anchors of "zeros" at determined distance on each side of the monitoring season with specific weight (length), this function is used by ts_monit_season()

Usage

set_anchor(FirstObs, LastObs, AnchorLength = 7, AnchorLag = 7, TimeUnit = "d")

Arguments

FirstObs

integer defining the start of the monitoring season - correspond to the day since

LastObs

integer defining the end of the monitoring season - correspond to the day since

AnchorLength

integer defining the number of days used as Anchor each side of the monitoring season

AnchorLag

integer defining the number of days between the Anchor and the monitoring season

TimeUnit

character defining the time unit used for the Anchor, can be 'd' for day or 'w' for week

Author(s)

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


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