flag_nonwear | R Documentation |
flag_nonwear
flag_nonwear( HR, steps, nonwear_method = c("missing_HR", "missing_HR_zero_steps", "choi_HR", "choi_steps", "none"), ... )
HR |
a numeric vector representing HR readings of a Fitbit. |
steps |
a numeric vector representing step readings of a Fitbit. Depending on the nonwear method, either HR or steps or both are used. |
nonwear_method |
a |
... |
additional parameters that go into the selected nonwear_method. |
nonwear vector, non wear time encoded as T, and wear time encoded as F.
## Not run: minute_data %>% group_by(id) %>% mutate( missing_HR = flag_nonwear(HR, steps, "missing_HR"), missing_HR_zero_steps = flag_nonwear(HR, steps, "missing_HR_zero_steps"), choi_HR = flag_nonwear(HR, steps, "choi_HR"), choi_steps = flag_nonwear(HR, steps, "choi_steps") ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.