Description Usage Arguments Value Author(s) References See Also Examples
This function aggregates count values
1 2 | aggAccFile(object, by, which = "counts",
x = NULL, keep.error = FALSE)
|
object |
an object of class |
by |
epoch by which count and steps are aggregated. Note: it cannot be less that the accelerometer epoch ( |
which |
either 'counts' or 'steps' for |
x |
optional argument. If |
keep.error |
logical flag. Should errors be omitted? |
outcome |
aggregated values |
ts_agg |
time stamping |
Marco Geraci
Geraci M, Rich C, Sera F, Cortina-Borja M, Griffiths LJ, and Dezateux C (2012). Technical report on accelerometry data processing in the Millennium Cohort Study. London, UK: University College London. Available at http://discovery.ucl.ac.uk/1361699
1 2 3 4 5 6 7 | data(gt1m_sample)
# aggregate by 30-second epochs
aggAccFile(gt1m_sample, by = 30)
# aggregate by 5-minute epochs
aggAccFile(gt1m_sample, by = 300, keep.error = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.