cut_counts {accelerometry} | R Documentation |
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).
cut_counts(counts, int_cuts = as.integer(c(100, 760, 2020, 5999)))
counts |
Integer vector with accelerometer count values. |
int_cuts |
Numeric vector with four cutpoints from which five intensity
ranges are derived. For example, |
Integer vector.
# 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)