freqForWordCloud: Stem and Source-Matched and Create Frequency Table

Description Usage Arguments Value

View source: R/freqs.R

Description

Returns a stemmed and source matched frequency table

Usage

1

Arguments

txt

a character or character vector to be stemmed and aggregated

mergekeep

a character vector of words to force merge into specific groups

mergereplace

a character vector of destinations for the force-merged words

bestkeep

a character vector of identified best sources to force to a new name

bestreplace

a character vector of new names to send the specified sources

Value

A dataframe with the following fields:

stem

Each stem in the provided text

freq

The number of appearances of each stem

sources

Every word that appeared in the input that was stemmed to this stem

best.source

The source word with the greatest pre-stemming frequency


mattgarber4/gsgWordcloud documentation built on Nov. 4, 2019, 6:17 p.m.