powered by
Remove words from a vector that have more than a maximum number of characters.
str_rm_long_words(x, max_char_length)
A vector of words.
An integer, the maximum number of characters a word can have to not be removed.
x, with the words not having a character count less than or equal to the max_char_length removed.
# NOT RUN { str_rm_long_words( x = c("a", "dog", "went", "to", "the", "store"), max_char_length = 2 ) # }
Run the code above in your browser using DataLab