gams4dts_thin_ts: 'GAMS4DTS' Thinning Methods

gams4dts_thin_tsR Documentation

GAMS4DTS Thinning Methods

Description

This function implements thinning behind the scenes for GAMS4DTS. The function is not intended to be called outside of this environment.

Usage

gams4dts_thin_ts(
  dat,
  id_column = "individual",
  timestamp_column = "timestamp",
  start_event_id_column = "start_event_id",
  start_event_logic_column = "start_event",
  method = c("swa", "sma", "sps"),
  parameters = list(swa = list(time_mins = 60, latitude = 56.41041, longitude = 5.469723,
    covariates = c("sex", "length", "sun_angle", "tidal_height", "lunar_phase",
    "julian_day"), independence_threshold = 720), sps = list(first = c(1, 2), nth = 10),
    sma = list())
)

Arguments

dat

A dataframe to be thinned.

id_column

A character input defining the column name in dat which distinguishes individuals (i.e. "individual").

timestamp_column

A character input defining the column name in dat which contains time stamps (i.e. "timestamp").

start_event_id_column

A character input defining the column name in dat which identifies start events (i.e. "start_event_id").

start_event_logic_column

A character input defining the column name in dat which defines start events with TRUE/FALSE (i.e. "start_event")

method

A character input defining the thinning method to be implemented. Supported options are: "swa", "sma" or "sps".

parameters

A list of parameters that are required to implement thinning depending on the method.

Value

A thinned dataframe.

Author(s)

Edward Lavender


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.