R/removeNumPunct.R

Defines functions removeNumPunct

Documented in removeNumPunct

# Remove Punctuation from text

#' Easily remove Punctuation from Text
#' @description This function will help you remove punctuation and numbers from your text easily
#'
#' @param x is the text column you want the punctuation and texts removed from
#' @return a character vector.
#'
#' @export
#'
#' @examples
#' {
#'removeNumPunct("is this your number? 01234")
#'
#' }
#'

removeNumPunct <- function(x) gsub("[^[:alpha:][:space:]]*", "", x)

Try the texter package in your browser

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

texter documentation built on Sept. 20, 2021, 5:08 p.m.