fst_get_unique_ngrams {finnsurveytext}R Documentation

Get unique n-grams from a list of top n-grams tables

Description

Takes a list containing at least two tables of n-grams and frequencies (either output of 'fst_freq_table()' or 'fst_ngrams_table()') and finds n-grams unique to one table.

Usage

fst_get_unique_ngrams(list_of_top_ngrams)

Arguments

list_of_top_ngrams

A list of top ngrams

Value

Dataframe of words and whether word is unique or not.

Examples

top_child <- fst_freq_table(fst_child)
top_dev <- fst_freq_table(fst_dev_coop)
list_of_top_words <- list()
list_of_top_words <- append(list_of_top_words, list(top_child))
list_of_top_words <- append(list_of_top_words, list(top_dev))
fst_get_unique_ngrams(list_of_top_words)

[Package finnsurveytext version 2.1.1 Index]