getWordFrequency: getWordFrequency

Description Usage Arguments Value Examples

View source: R/getWordFrequency.R

Description

Calculate the word frequency (as a percentage of total words) for the given text (i.e. email)

Usage

1

Arguments

text

Text where the word frequency will be calculated from

words

Vector of words that will be included in the result

Value

Vector of the word frequency (i.e. same length as the 'words' param)

Examples

1
getWordFrequency("This is my text", c("this", "your"))

megahf/spamfilter documentation built on May 29, 2019, 4:42 a.m.