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

singleize {filesstrings} | R Documentation

## Remove back-to-back duplicates of a pattern in a string.

### Description

See `strex::str_singleize()`.

### Usage

    singleize(string, pattern)

    str_singleize(string, pattern)

### Arguments

`string` | A character vector.
`pattern` | The pattern to look for. The default interpretation is a regular expression, as described in stringi::stringi-search-regex. To match a without regular expression (i.e. as a human would), use coll(). For details see `stringr::regex()`.

[Package filesstrings version 3.1.0 Index]