View source: R/daily_behaviour.R
This function checks whether daily steps as measured by a pedometer are valid. The variables from this function are used to compute
the step score (
validate_steps(steps = NA, wear_time = NA)
A numeric (integer) vector representing the steps taken on a given day (valid values are between 1000 and 30000).
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).
capl functions called by this function include:
steps argument (if valid) or NA (if not valid).
validate_steps( steps = c(5400, 11001, 999, 31000, 8796), wear_time = c(10.1, 12.6, 10.2, 10.9, 9.5) ) #  5400 11001 NA NA NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.