Skip to contents

The three columns of a coding guideline ("Kodierleitfaden") as used in qualitative content analysis (Mayring, Kuckartz): a definition of the category, one or more anchor examples (typical passages) and a coding rule (how to decide borderline cases). Arguments left NULL are not changed. The definition is stored in the column description.

Usage

qda_code_guide(
  code,
  definition = NULL,
  anchor = NULL,
  rule = NULL,
  append_anchor = FALSE
)

Arguments

code

Code id or unique label.

definition, anchor, rule

New text, or NULL to keep the current one.

append_anchor

Logical; add anchor as a further example instead of replacing the existing anchor examples.

Value

Invisibly, a one-row tibble with the updated guideline.

Examples

qda_open(file.path(tempfile(), "example.jellyqda"))
qda_import(system.file("extdata", "interview_01.txt", package = "jellyqda"))
#> # A tibble: 1 × 5
#>      id name             format chars status
#>   <int> <chr>            <chr>  <int> <chr> 
#> 1     1 interview_01.txt txt      856 ok    
qda_code_add("Career path")
qda_code_add("SME", parent = "Career path")
qda_code_guide("SME",
  definition = "Statements about working in a small or medium-sized enterprise",
  rule = "Only explicit statements; comparisons with corporations -> other code")
qda_code_guide("SME", anchor = "'I have worked in a small company for 5 years'",
               append_anchor = TRUE)
qda_codes()[, c("label", "description", "anchor", "coding_rule")]
#> # A tibble: 2 × 4
#>   label       description                                     anchor coding_rule
#>   <chr>       <chr>                                           <chr>  <chr>      
#> 1 Career path ""                                              ""     ""         
#> 2 SME         "Statements about working in a small or medium… "'I h… "Only expl…
qda_close()