This function computes the daily arithmetic mean of a week of steps taken as measured by a pedometer (
step_average). This variable is used to compute
the step score (
A data frame that includes seven days of pedometer steps and their corresponding on and off times. See Details for how these variables must be named.
This function will throw an error unless the following variables are found in the
There must be at least three valid days for an arithmetic mean to be computed. If only three valid days, one of the step values from a valid day will be randomly sampled and used for the fourth valid day before computing the mean.
capl functions called by this function include:
Returns a data frame with nine columns:
step_average. The steps are validated with the
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.