Hibbing_2021_internal | R Documentation |
Functions used internally for the sedentary profiles of Hibbing et al. (2021)
profile_df_check(df, counts, valid_indices, id, wear)
profile_counts_check(df, counts)
profile_indices_check(df, valid_indices)
profile_id_wear_check(df, id, wear)
profile_id_verify(df, id)
profile_choi_wear(counts)
profile_id_bind(result, id, simplify = TRUE)
counts |
character scalar. Column name of the variable to use when classifying sedentary behavior (and wear time, depending on the function) |
valid_indices |
[optional] numeric/integer/logical vector specifying
which indices of |
id |
character scalar (optional). Column name on which to divide
|
wear |
character scalar [optional]. Column name of the variable to use
for determining wear time (logical vector with |
result |
output that may need data frame formatting (possibly ID-based) |
The purpose of profile_id_wear_check
is to determine if the Choi
wear time algorithm needs to be run and, if so, to run it (via
profile_choi_wear
, with a message). To bypass,
run df$is_wear <- TRUE
prior to executing
profile_id_wear_check(df, id, wear = "is_wear")
.
profile_df_check
is a wrapper that encompasses all the checks on this
page
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.