| gams4dts_thin_ts | R Documentation | 
GAMS4DTS Thinning MethodsThis function implements thinning behind the scenes for GAMS4DTS. The function is not intended to be called outside of this environment.
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())
)
| dat | A dataframe to be thinned. | 
| id_column | A character input defining the column name in  | 
| timestamp_column | A character input defining the column name in  | 
| start_event_id_column | A character input defining the column name in  | 
| start_event_logic_column | A character input defining the column name in  | 
| method | A character input defining the thinning method to be implemented. Supported options are:  | 
| parameters | A list of parameters that are required to implement thinning depending on the method. | 
A thinned dataframe.
Edward Lavender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.