frequency_threshold: A function to frequency threshold a vector of strings.

Description Usage Arguments Value

View source: R/frequency_threshold.R

Description

A function to frequency threshold a vector of strings.

Usage

1
frequency_threshold(word_vector, threshold = 1)

Arguments

word_vector

A character vector of words we wish to frequency threshold.

threshold

An integer > 0 indicating the number of times a word must appear more than to be included in the vector we return. Defaults to threshold = 1, meaning all words that appear 1 or less times in the vector we pass in will be removed.

Value

A word vector with all words appearing 'threshold' or less times removed.


matthewjdenny/SpeedReader documentation built on March 25, 2020, 5:32 p.m.