fun.collapse {pawacc} | R Documentation |
Summary statistics
Description
Accessory function for collapsing accelerometer files.
Usage
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)))
Arguments
x |
numeric vector. |
fun |
named list of functions to be applied to |
Value
a list of named values of the same length as fun
.
Author(s)
Marco Geraci
References
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
See Also
[Package pawacc version 1.2.3 Index]