Learn R Programming

finnsurveytext (version 2.1.1)

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

Value

Dataframe of words and whether word is unique or not.

Arguments

list_of_top_ngrams

A list of top ngrams

Examples

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

Run the code above in your browser using DataLab