Skip to contents

Calculate central tendency and dispersion for translational and rotational kinematics.

Usage

summarise_kinematics(
  data,
  measures = c("median_mad", "mean_sd"),
  .check = TRUE
)

summarize_kinematics(
  data,
  measures = c("median_mad", "mean_sd"),
  .check = TRUE
)

Arguments

data

A kinematics aniframe (output of calculate_kinematics())

measures

Measures of central tendency and dispersion for kinematics. Options are "median_mad" (default) and "mean_sd".

.check

Whether to validate input. Set to FALSE when called from summarise_aniframe() to avoid redundant checks.

Value

A summarised data frame with one row per group containing central tendency and dispersion measures (prefixed with median_/mad_ or mean_/sd_)

  • Speed, acceleration

  • Angular speed, velocity, acceleration (2D only)

  • Heading (2D only, using circular statistics)