fun.collapse | R Documentation |
Accessory function for collapsing accelerometer files.
fun.collapse(x, fun = list(mean = function(x) mean(x, na.rm = TRUE),
median = function(x) median(x, na.rm = TRUE),
sd = function(x) sd(x, na.rm = TRUE)))
x |
numeric vector. |
fun |
named list of functions to be applied to |
a list of named values of the same length as fun
.
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 https://discovery.ucl.ac.uk/1361699
collapse.accfile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.