View source: R/apply_measures.R
| apply_jerk | R Documentation |
Apply Jerk
apply_jerk(x, starts, ends, axis_cols = c(2, 3, 4))
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. |
A numeric data frame containing values of mean and SD for each axis per start-end window.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.