transcript_frequency {highlightr} | R Documentation |
Mapping Collocation Frequency to Transcript Document
Description
This function connects the collocation frequency calculated in
collocate_comments_fuzzy()
to the base transcript.
Usage
transcript_frequency(transcript, collocate_object)
Arguments
transcript |
transcript document |
collocate_object |
collocation object (returned
from |
Value
a dataframe of the transcript document with collocation values by word
Examples
comment_example_rename <- dplyr::rename(comment_example, page_notes=Notes)
toks_comment <- token_comments(comment_example_rename)
transcript_example_rename <- dplyr::rename(transcript_example, text=Text)
toks_transcript <- token_transcript(transcript_example_rename)
collocation_object <- collocate_comments_fuzzy(toks_transcript, toks_comment)
merged_frequency <- transcript_frequency(transcript_example_rename, collocation_object)
[Package highlightr version 1.0.2 Index]