apply_jerk: Apply Jerk

View source: R/apply_measures.R

apply_jerkR Documentation

Apply Jerk

Description

Apply Jerk

Usage

apply_jerk(x, starts, ends, axis_cols = c(2, 3, 4))

Arguments

x

Calibrated acceleration data frame.

starts

Integer vector of indices that define the start of each aggregation window.

ends

Integer vector of indices that define the end of each aggregation window.

axis_cols

Integer vector of column numbers in data frame x that represent the x, y and z axes.

Value

A numeric data frame containing values of mean and SD for each axis per start-end window.

Examples

x <- c(0.14268, 0.21757, -0.529, -0.36383, 0.26385, 0.27295, 0.29220, 0.79510)
y <- c(0.26385, 0.27295, 0.29220, 0.79510, 0.27722, 0.10296, 0.15092, 0.27459)
z <- c(0.27722, 0.20296, 0.35092, 0.27459, 0.14268, 0.21757, -0.529, -0.36383)
calibrated <- data.frame(x, y, z)
calibrated <- apply_jerk(calibrated, starts = c(1, 5), ends = c(4, 8), axis_cols = c(1, 2, 3))

GENEAcore documentation built on Oct. 22, 2026, 5:09 p.m.