
Clean speed outliers using data-driven threshold
Source:R/grz_clean_pipeline.R
grz_clean_speed_stat.RdClean speed outliers using data-driven threshold
Arguments
- data
Data frame of GPS rows.
- method
Threshold method:
"mad"or"quantile".- k
MAD multiplier (used when
method = "mad").- prob
Quantile probability (used when
method = "quantile").- min_threshold_mps
Lower bound for threshold.
- groups
Grouping columns for step/speed calculation.
- keep_speed_cols
Keep
step_dt_s,step_m, andspeed_mpscolumns.- verbose
Logical; print drop counts.
- snapshot
Logical; print quick snapshot after step.
- return_class
Output class:
"data.frame"(default) or"data.table".