Skip to contents

Get potential follow-up questions for a suggestion.

Usage

get_followup_questions(
  suggestion_id,
  tense = "present",
  suggestion_type = "auxco-1.2.x",
  suggestion_type_options = list(),
  include_answer_codes = FALSE
)

Arguments

suggestion_id

Id of the suggestion

tense

Which tense i.e. time to use for questions & answers, this can be "present" or "past". Defaults to "present".

suggestion_type

Which suggestion type is being used. Only auxco-based suggestion_types are supported.

suggestion_type_options

A list with options for generating suggestions. Supported options: - datasets: Pass specific datasets to be used whenn adding information to predictions e.g. use a specific version of the kldb or auxco. Supported datasets are: "auxco-1.2.x", "kldb-2010". By default the datasets bundled with this package are used.

include_answer_codes

Whether answer options should contain information on the associated codes. Defaults to FALSE. (Only for internal use, use get_final_codes() to get codes)

Value

List of followup questions and their answer options.

Examples

data.table::setDTthreads(1)

if (FALSE) {
# Get followup questions for "Post- und Zustelldienste"
get_followup_questions("1004")
}