View source: R/manual_compendium_reference.R
| manual_compendium_reference | R Documentation |
Manually Encode Direct Observation Intensities by Cross-Referencing the Compendium of Physical Activities
manual_compendium_reference(
obs_data,
kids = c("yes", "no"),
mvpa = c("yes", "no")
)
obs_data |
A data frame outputted from
|
kids |
A character scalar in |
mvpa |
A character scalar in |
A list with three elements. The first (data) is the
original data, where a Final_Intensity column has been
populated to the extent possible, with "Indeterminate" listed for
the other activities. The second element (indeterminate) is
another list, which has one element for each activity in
data with Final_Intensity = "Indeterminate". The
elements of indeterminate are named after the activity they
represent, and the contents are a subset of the Compendium giving
suggested matches for the activity, based on its description in
data. The third element (compendium) gives the entire
compendium, which can be manually cross-referenced for cases where
the suggested matches in indeterminate do not give a suitable
match.
Other processing functions:
compendium_reference(),
interactive_compendium_reference()
data(example_data)
example_data_processed <- compendium_reference(example_data, FALSE,
kids = "yes", mvpa = "yes")
if (interactive()) {
View(example_data_processed$data)
View(example_data_processed$indeterminate[[1]])
View(example_data_processed$compendium)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.