R/str-singleize.R

Defines functions str_singleize

Documented in str_singleize

#' Remove back-to-back duplicates of a pattern in a string.
#'
#' Copy of [strex::str_singleize()].
#'
#' @inheritParams match_arg
#'
#' @export
str_singleize <- function(...){
  strex::str_singleize(...)
}

#' @rdname str_singleize
#' @export
singleize <- str_singleize

Try the filesstrings package in your browser

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

filesstrings documentation built on May 29, 2024, 3:32 a.m.