Classifies each row into rest, graze, or travel using transparent rule
thresholds.
Arguments
- data
Input data containing GPS rows.
- method
Classification method. Currently only
"rules"is supported.- state_col
Name of output state column.
- groups
Grouping columns used for run-order and optional smoothing.
- rest_speed_max
Maximum speed for
reststate (m/s).- rest_step_max
Maximum step distance for
reststate (m).- graze_speed_max
Maximum speed for
grazestate (m/s).- travel_speed_min
Minimum speed for
travelstate (m/s).- travel_turn_max
Maximum absolute turning angle for
travel(radians).- min_run_n
Optional run-length smoothing threshold. Runs shorter than this value are replaced by neighbouring states.
- verbose
Logical; print summary counts.
- return_class
Output class:
"data.frame"(default) or"data.table".
