preprocess_internal: Internal function that replaces regex matches with...

View source: R/preprocess_internal.R

preprocess_internalR Documentation

Internal function that replaces regex matches with underscores

Description

Internal function that replaces regex matches with underscores

Usage

preprocess_internal(string, sep_in)

Arguments

string

A string.

sep_in

(short for separator input) A regex supplied as a character (if not NULL), which will be wrapped internally into stringr::regex(). All matches will be replaced by underscores (additionally to "_" and " ", for which this is always true). Underscores can later turned into another separator via postprocess.

Value

A character containing the parsed string.

Author(s)

Malte Grosser, malte.grosser@gmail.com


snakecase documentation built on Aug. 28, 2023, 1:07 a.m.