calculate_co_occurrences | R Documentation |
Analyzes text annotations to identify and count instances where different codes overlap or co-occur in the same text regions. Handles edge cases and provides error-safe operation.
calculate_co_occurrences(annotations)
annotations |
Data frame containing annotations with columns:
|
Co-occurrences are identified by finding overlapping text regions between different code annotations. The function sorts annotations by position and checks for overlaps between each pair of annotations.
Table object containing frequencies of code pairs that co-occur, with code pair names as "code1 & code2"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.