Without start/end/segment the whole document belongs to the case.
With start and end (character positions, 1-based, as in
qda_code()) or segment (segment numbers) only these passages belong to
it – e.g. the turns of one participant in a group interview. A document
can belong to several cases. Assigning the same thing twice is ignored.
Value
Invisibly, the members of the case (see qda_case_members()).
Examples
qda_open(file.path(tempfile(), "example.jellyqda"))
qda_import(system.file("extdata", c("interview_01.txt", "interview_02.md"), package = "jellyqda"))
#> # A tibble: 2 × 5
#> id name format chars status
#> <int> <chr> <chr> <int> <chr>
#> 1 1 interview_01.txt txt 856 ok
#> 2 2 interview_02.md md 531 ok
qda_case_add("Person A")
qda_case_assign("Person A", 1) # the whole first interview
qda_case_assign("Person A", 2, segment = c(3, 5)) # two turns of the second
qda_case_members("Person A")
#> # A tibble: 3 × 7
#> id source_id source start end chars text
#> <int> <int> <chr> <int> <int> <int> <chr>
#> 1 1 1 interview_01.txt NA NA 856 "DEMO FILE - fictional int…
#> 2 2 2 interview_02.md 128 197 70 "**Interviewer:** How do y…
#> 3 3 2 interview_02.md 337 353 17 "## Section: trust"
qda_close()