View source: R/Read_Raw_Utils.R
AG_collapse | R Documentation |
Collapse primary accelerometer data
AG_collapse( AG, output_window_secs = 1, samp_freq, method = "default", ENMO2 = NULL )
AG |
a dataframe of raw primary accelerometer data |
output_window_secs |
the desired epoch length; defaults to one second |
samp_freq |
The sampling frequency |
method |
character scalar giving the method to use for calculating ENMO, either "default" or "block" |
ENMO2 |
vector of leftover raw values from the previous block (if applicable) |
A data frame of collapsed acceleration summaries
data(raw_to_collapse) collapsed <- AG_collapse(raw_to_collapse, 1, 80) head(collapsed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.