Skip to contents

Thin wrapper around mutate_directional_features() for pipelines where a more explicit movement-data verb is useful.

Usage

as_step_data(
  data,
  x,
  y,
  id = NULL,
  time = NULL,
  angle_convention = c("mathematical", "bearing")
)

Arguments

data

A data frame.

x, y

Coordinate columns.

id

Optional individual identifier column.

time

Optional time column used for sorting within individual.

angle_convention

Angle convention passed to compute_bearing().

Value

A tibble with movement features.