View source: R/amber.interviews.R
amber.interviews_step_data | R Documentation |
Get the data of the steps with a specific name.
amber.interviews_step_data(steps, step_name)
steps |
The data frame of interviews steps |
step_name |
The name of the step |
A data.frame of step data
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_actions()
,
amber.interviews_steps()
,
amber.participant()
,
amber.participants()
,
amber.studies()
,
amber.study()
## Not run:
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 data of the step with name CONSENT
consent_data <- amber.interviews_step_data(steps, 'CONSENT')
# Count per agreement values (possible values are 0 or 1)
consent_data %>% count(AGREEMENT)
amber.logout(a)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.