View source: R/prepare_dataset.R
prepare_dataset | R Documentation |
This function reads an .agd file and then creates the vector magnitude variable as follows:
vm = \sqrt{axis1^{2} + axis2^{2} + axis3^{2}}
.
The .agd file must contain at least the following columns:
axis1
axis2
axis3
steps
prepare_dataset(data)
data |
Path to an .agd file that was exported from ActiLife software. |
A dataframe.
file <- system.file("extdata", "acc.agd", package = "activAnalyzer")
mydata <- prepare_dataset(data = file)
head(mydata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.