R/prepare_words.R

Defines functions prepare_words

Documented in prepare_words

#' Prepare a word(s)
#' @param x word list (character/vector)
prepare_words <- function(x) {
  stringr::str_replace_all(toupper(x), " |-|'|\\.", "")
}

Try the worrrd package in your browser

Any scripts or data that you put into this service are public.

worrrd documentation built on Oct. 26, 2022, 1:08 a.m.