Learn R Programming

SpeedReader (version 0.9.1)

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

Description

A function to frequency threshold a vector of strings.

Usage

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.