analyze_coding_density | R Documentation |
Calculates metrics related to coding density in the text, including overall density and identification of densely coded regions.
analyze_coding_density(annotations)
annotations |
Data frame containing annotations with columns:
|
Density is calculated as the ratio of coded text to total text length. Dense regions are identified where consecutive annotations are close together (within 20 characters by default).
List containing:
overall_density: Numeric value representing proportion of text covered by codes
dense_regions: List of vectors, each containing start and end positions of identified dense coding regions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.