Get the actions of some interviews step
Source:R/amber.interviews.R
amber.interviews_step_actions.Rd
Get the actions of the steps with a specific name.
See also
Other studies functions:
amber.campaign()
,
amber.campaigns()
,
amber.case_report_export()
,
amber.case_report_form()
,
amber.case_report_forms()
,
amber.case_reports()
,
amber.form()
,
amber.form_revision()
,
amber.form_revisions()
,
amber.forms()
,
amber.interview_design()
,
amber.interview_designs()
,
amber.interview_export()
,
amber.interviews()
,
amber.interviews_step_data()
,
amber.interviews_steps()
,
amber.participant()
,
amber.participants()
,
amber.studies()
,
amber.study()
Examples
if (FALSE) { # \dontrun{
a <- amber.login("https://amber-demo.obiba.org")
# Find interview records of a study
itws <- amber.interviews(a, study = "Trauma Registry")
# Get steps
steps <- amber.interviews_steps(itws)
# Get actions of the step with name QUESTIONNAIRE
actions <- amber.interviews_step_actions(steps, 'QUESTIONNAIRE')
# Count the number of completed QUESTIONNAIRE steps ('complete' action type)
# in completed interviews ('completed' state)
actions %>% filter(state == 'completed', type == 'complete') %>% count()
amber.logout(a)
} # }