get_long_words: Get Long Words

Description Usage Arguments Value Examples

View source: R/get_long_words.R

Description

This function takes a Corpus or vector of documents and returns words with length greater than a threshold.

Usage

1
get_long_words(x, length_threshold = 20)

Arguments

x

An object inheriting from Corpus, a list of character vectors, or a character vector.

length_threshold

An integer. Words of length strictly greater than this threshold will be returned.

Value

A character vector of words with length greater than length_threshold.

Examples

1
2
docs <- c("What are you doing down there, crashy?", "I'm real good at lying to Lois.")
long_words <- get_long_words(docs, length_threshold=4)

dtburk/texanaaid documentation built on Nov. 12, 2019, 9:44 p.m.