Skip to contents

All codings, code memos and summaries of from move to into; subcodes of from become subcodes of into (a subcode with the same label as an existing subcode of into is merged into it as well). The guideline texts are kept (appended where both codes have one). Finally from is deleted. Typical step of inductive category building: two categories turn out to mean the same. Undo restores everything in one step.

Usage

qda_code_merge(from, into)

Arguments

from

Code that disappears (id or unique label).

into

Code that remains (id or unique label).

Value

Invisibly, a one-row tibble: into, number of codings_moved.

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("Interest")
qda_code_add("Intrinsic")
qda_code(1, "Interest", segment = 2)
qda_code_merge("Interest", into = "Intrinsic")
qda_codings()$code
#> [1] "Intrinsic"
qda_undo()   # both codes are back
qda_close()