word_frequency: Compute frequency of words in a corpus

Description Usage Arguments Value

View source: R/word_frequency.R

Description

word_frequency counts the frequency of words in a set of strings. Also does minimal cleaning (removes punctuation and extra spaces). Useful for determining what words are common and may need to be replaced or removed with clean_strings.

Usage

1

Arguments

string

character vector

Value

data.table with word frequency


fedmatch documentation built on Nov. 23, 2021, 1:07 a.m.