Learn R Programming

occupationMeasurement (version 0.3.2)

page_followup: Show potential followup questions to the user.

Description

To disambiguate between similar occupations. Depending on the suggestion, multiple followup questions can be shown.

Usage

page_followup(index, is_interview = FALSE, ...)

Value

A page object.

Arguments

index

The index of the followup question (1-based). To show the first followup question (if there are any) use page_followup(index = 1), to show a potential second followup question use page_followup(index = 2). For example questionnaire_web_survey() uses ..., page_followup(index = 1), page_followup(index = 2), ...

is_interview

Should the page show slightly different / additional instructions and answer options for an interview that is conducted by another person? Defaults to FALSE.

...

All additional parameters are passed to new_page()

See Also

new_page()

Examples

Run this code
data.table::setDTthreads(1)

if (FALSE) {
my_questionnaire <- list(
  page_first_freetext(),
  page_second_freetext(),
  page_select_suggestion(),
  page_none_selected_freetext(),
  page_followup(1),
  page_followup(2)
)
if (interactive()) {
  app(questionnaire = my_questionnaire)
}
}

Run the code above in your browser using DataLab