create_survey_definition: Create a survey definition

View source: R/platform.R

create_survey_definitionR Documentation

Create a survey definition

Description

Create and check survey structure and import from template if provided. This function is mainly used internally by [platform_define_survey()]. Unless you want to test definition you should not need this function.

Usage

create_survey_definition(
  mapping,
  labels = NULL,
  codes = NULL,
  recodes = list(),
  template = NULL,
  only.errors = TRUE
)

Arguments

mapping

list() variable (name) to DB column (value) mapping

labels

list() named list of labels

codes

list() of codes **deprecated**

recodes

list() list of recoding

template

character

only.errors

if TRUE only check for errors

Value

list(mapping, labels, recodes, checks)

See Also

Other platform: load_platform(), platform_define_survey(), platform_import()


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.