calculate_transitions | R Documentation |
Analyzes the sequence of code applications to identify transitions between consecutive codes in the text. Creates a list of code pairs representing each transition from one code to another.
calculate_transitions(annotations)
annotations |
Data frame containing annotations with columns:
|
Transitions are identified by sorting annotations by position and then analyzing consecutive pairs of codes. The function handles edge cases and provides error-safe operation.
List where each element is a named vector containing:
from: Character string of the source code
to: Character string of the target code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.