Skip to contents

Delete a code (and its sub-codes and their codings)

Usage

qda_code_delete(code)

Arguments

code

Code id or unique label.

Value

Invisibly, a one-row tibble with the number of deleted codes and codings.

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, "SME", segment = 2)
qda_code_delete("Career path")   # with its subcodes and codings
nrow(qda_codes())
#> [1] 0
qda_undo()                       # everything is back
nrow(qda_codes())
#> [1] 2
qda_close()