Skip to contents

Keeps the passage, its offsets and its comment; only the code changes. Typical use: a passage coded with a top-level code is refined to one of its subcodes (or the other way round). Undoable like every action.

Usage

qda_coding_recode(coding, code)

Arguments

coding

Coding id.

code

New code (id or unique label).

Value

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

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(1, "Career path", segment = 2)
qda_coding_recode(1, "SME")
qda_codings()$code
#> [1] "SME"
qda_close()