validate_steps: Check whether daily steps as measured by a pedometer are valid.
Description
This function checks whether daily steps as measured by a pedometer are valid. The variables from this function are used to compute step_average and
the step score (step_score).
Usage
validate_steps(steps = NA, wear_time = NA)
Arguments
steps
A numeric (integer) vector representing the steps taken on a given day (valid values are between 1000 and 30000).
wear_time
A numeric vector representing the duration of time (in decimal hours) that a pedometer was worn on a given day (valid values are >= 10.0
hours).
Value
Returns the steps argument (if valid) or NA (if not valid).