singleize: Remove back-to-back duplicates of a pattern in a string.

Description Usage Arguments

Description

See strex::str_singleize().

Usage

1
2
3

Arguments

string

A character vector.

pattern

The pattern to look for.

The default interpretation is a regular expression, as described in stringi::about_search_regex.

To match a without regular expression (i.e. as a human would), use coll(). For details see stringr::regex().


filesstrings documentation built on April 18, 2021, 9:12 a.m.