Learn R Programming

finnsurveytext (version 2.1.1)

fst_join_unique: 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)

Value

A table of top n-grams, frequency, and whether the n-gram is "unique".

Arguments

table

Output of `fst_freq_table()` or `fst_ngrams_table()`.

unique_table

Output of `fst_get_unique_ngrams()`.

Examples

Run this code
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)

Run the code above in your browser using DataLab