cut_counts {accelerometry} | R Documentation |
Cut Count Values into Intensity Ranges
Description
Given a vector of accelerometer count values, classifies each count value into intensity level 1, 2, 3, 4, or 5 (typically representing sedentary, light, lifestyle, moderate, and vigorous).
Usage
cut_counts(counts, int_cuts = as.integer(c(100, 760, 2020, 5999)))
Arguments
counts |
Integer vector with accelerometer count values. |
int_cuts |
Numeric vector with four cutpoints from which five intensity
ranges are derived. For example, |
Value
Integer vector.
Examples
# Load accelerometer data for first 5 participants in NHANES 2003-2004
data(unidata)
# Get data from ID number 21005
counts.part1 <- unidata[unidata[, "seqn"] == 21005, "paxinten"]
# Cut into 5 intensity levels and plot
intensity.part1 <- cut_counts(counts = counts.part1)
plot(intensity.part1)
[Package accelerometry version 3.1.2 Index]