rotate.data | R Documentation |
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.
rotate.data(data, from, to)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.