getCharFrequency: getCharFrequency

Description Usage Arguments Value Examples

View source: R/getCharFrequency.R

Description

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

Usage

1

Arguments

text

Text where the char frequency will be calculated from

chars

Vector of characters that will be included in the result

Value

Vector of the char frequency (i.e. same length as the 'chars' param)

Examples

1
getCharFrequency("This is my text", c("i", "t", "?"))

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