set_question: Create a unit specific codebook

View source: R/create_units.r

set_questionR Documentation

Create a unit specific codebook

Description

Codebooks can be defined at different levels: codingjob > jobset > unit. The most specific codebook will be used. This allows creating special units that have their own codebook (e.g., for survey-like questions), or using codebooks with dynamic codes.

Usage

set_question(name, question = NULL, codes = NULL, ...)

Arguments

name

A character value indicating the name of the question. This will also be the variable name in annotations. Coders won't see this name.

question

The question text. Can either be a character value, or an expression (e.g., to use a column in the data)

codes

The codes that the coder can choose from. See question for more details. Note that with set_question you can refer to columns in the data to create dynamic questions.

...

Other arguments passed to question

Value

Only meant to be used inside of create_units or create_unit.


ccs-amsterdam/ccsAnnotator documentation built on March 19, 2024, 2:14 a.m.