R/rtn.R

Defines functions rtn

Documented in rtn

#' rtn()
#'
#' remove text/number and get only punct
#'
#' @export
rtn <- function(string){
  return(trimws(gsub("[[:alpha:]]","",gsub("[[:digit:]]","",string))))
}
nbarsch/tfwstring documentation built on May 4, 2023, 5:26 a.m.