nhanes_wear: Retrieve wear information for an NHANES accelerometer data...

View source: R/nhanes_wear.R

nhanes_wearR Documentation

Retrieve wear information for an NHANES accelerometer data file

Description

This is a wrapper around PhysicalActivity::wearingMarking that takes into account the non-POSIX formatting of NHANES timestamps

Usage

nhanes_wear(counts)

Arguments

counts

character scalar. Column name of the variable to use when classifying sedentary behavior (and wear time, depending on the function)

Value

a vector of wear time information (TRUE means wearing and FALSE means not wearing)

Examples

data(example_data, package = "SBprofiles")
nhanes_wear(example_data$PAXINTEN)

paulhibbing/SBprofiles documentation built on June 16, 2022, 3:31 a.m.