Skip to contents

The segment containing at is split so that a new segment starts at at (whitespace at the cut is trimmed away). Undoable.

Usage

qda_segment_split(source, at)

Arguments

source

Source id or unique name.

at

1-based character position where the new segment starts.

Value

Invisibly, the new segments.

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_segment_split(1, at = 100)
qda_source_segments(1)
#> # A tibble: 8 × 4
#>   segment start   end text                                                      
#>     <int> <int> <int> <chr>                                                     
#> 1       1     1    99 DEMO FILE - fictional interview written for jellyqda. All…
#> 2       2   100   101 d.                                                        
#> 3       3   104   202 Interviewer: Good morning, and thank you for taking the t…
#> 4       4   205   325 Respondent: Sure. I am 34 years old and I have been worki…
#> 5       5   328   370 Interviewer: How did you get into this job?               
#> 6       6   373   605 Respondent: After studying business informatics I first w…
#> 7       7   608   647 Interviewer: What motivates you at work?                  
#> 8       8   650   856 Respondent: Above all the direct contact with our custome…
qda_close()