View source: R/manual_data_collection_program.R
manual_data_collection_program | R Documentation |
Manually Collect Direct Observation Data
manual_data_collection_program( id, timestamps, activities, durations = NULL, seated = NA, large_muscles_moving = NA, slow = NA, slowed_by_resistance = NA, ambulation = NA, light_walking = NA )
id |
Character scalar giving ID to assign to the trial |
timestamps |
Vector of times (character or POSIX) corresponding to onset of each activity and (if |
activities |
Character vector of activities in the sequence they were performed |
durations |
Optional numeric vector giving duration of each activity, in seconds |
seated |
Character vector giving yes/no/NA response for whether the participant was seated during each activity |
large_muscles_moving |
Character vector giving yes/no/NA response for whether the participant was moving large muscles during each activity |
slow |
Character vector giving yes/no/NA response for whether muscle contractions were slow during each activity |
slowed_by_resistance |
Character vector giving yes/no/NA response for whether slow muscle contractions were slowed because of resistance |
ambulation |
Character vector giving yes/no/NA response for whether the each activity is ambulatory |
light_walking |
Character vector giving yes/no/NA response for whether ambulation was slow enough to be considered light activity instead of moderate or vigorous |
A dataframe of pre-processed direct observation data generated from minimal input
By default, activity duration is automatically calculated, which is accomplished via diff.POSIXt
and thus requires n + 1
timestamps, where n
is the number of activities. Alternatively, durations can be manually specified via the durations
parameter, in which case only n
timestamps are needed, corresponding to the onset of each activity.
Other collection functions:
data_collection_program()
,
interactive_data_collection_program()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.