View source: R/daily_behaviour.R
This function computes a step score (
step_score) based on the average daily steps taken as measured by a pedometer. This score is used to compute the
daily behaviour domain score (
get_step_score(step_average = NA)
A numeric vector representing average daily steps taken. See
capl functions called by this function include:
Returns a numeric (integer) vector with values between 0 and 25 (if valid) or NA (if not valid).
capl_demo_data <- get_capl_demo_data(10) step_average <- get_step_average(capl_demo_data)$step_average get_step_score(step_average) #  25 18 22 18 15 20 25 20 24 15
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.