R/removeURL.R

Defines functions removeURL

Documented in removeURL

# URL Remover

#' A function to help you remove URLs from text
#' @description  This function helps remove URLs from text, particularly designed for tweets
#'
#' @return a character vector.
#' @export
#'
#' @param x is the text value you want to extract the texts from
#'
#'
#'
#'
removeURL <- function(x) gsub("([[:alpha:]])(?=\\1)", "", x, perl = TRUE)

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.