manual_data_collection_program: Manually Collect Direct Observation Data

View source: R/manual_data_collection_program.R

manual_data_collection_programR Documentation

Manually Collect Direct Observation Data

Description

Manually Collect Direct Observation Data

Usage

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
)

Arguments

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 durations = NULL) offset of the final activity (i.e., ending time of the trial)

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

Value

A dataframe of pre-processed direct observation data generated from minimal input

Note

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.

See Also

Other collection functions: data_collection_program(), interactive_data_collection_program()


Observation documentation built on Sept. 5, 2022, 9:06 a.m.