rotate.data: Rotate Triaxial Accelerometer Data

View source: R/rotate_data.R

rotate.dataR Documentation

Rotate Triaxial Accelerometer Data

Description

Takes a data frame or data matrix with three columns, and internally generates a rotation matrix that will rotate the vector "from" to "to". The vector space orthoganol to these vectors (their cross-product) are not rotated–they become the axis of rotation.

Usage

rotate.data(data, from, to)

Arguments

data

Data frame or matrix containing the accelerometer data. Should include ONLY variables x, y, z.

from

Vector defining the starting point for the rotation.

to

Vector defining the ending point for the rotation.


etzkorn/postuR documentation built on Nov. 15, 2024, 12:41 a.m.