R/rpt.R

Defines functions rpt

Documented in rpt

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