fst_join_unique: Merge N-grams table with unique words

View source: R/04_comparison_functions.R

fst_join_uniqueR 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)

finnsurveytext documentation built on April 4, 2025, 5:07 a.m.