fst_join_unique {finnsurveytext} | R Documentation |
Merge N-grams table with unique words
Description
Merges list of unique words from 'fst_get_unique_ngrams()' with output of 'fst_freq_table()' or 'fst_ngrams_table()' so that unique words can be displayed on comparison plots.
Usage
fst_join_unique(table, unique_table)
Arguments
table |
Output of 'fst_freq_table()' or 'fst_ngrams_table()'. |
unique_table |
Output of 'fst_get_unique_ngrams()'. |
Value
A table of top n-grams, frequency, and whether the n-gram is "unique".
Examples
top_child <- fst_freq_table(fst_child)
top_dev <- fst_freq_table(fst_dev_coop)
unique_words <- fst_get_unique_ngrams_separate(top_child, top_dev)
fst_join_unique(top_child, unique_words)
fst_join_unique(top_dev, unique_words)
[Package finnsurveytext version 2.1.1 Index]