str_rm_long_words: Remove words from a vector that have more than a maximum...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Remove words from a vector that have more than a maximum number of characters.

Usage

1
str_rm_long_words(x, max_char_length)

Arguments

x

A vector of words.

max_char_length,

An integer, the maximum number of characters a word can have to not be removed.

Value

x, with the words not having a character count less than or equal to the max_char_length removed.

Examples

1
2
3
4
str_rm_long_words(
x = c("a", "dog", "went", "to", "the", "store"),
max_char_length = 2
)

textTools documentation built on Feb. 5, 2021, 5:07 p.m.