normalize.str: normalize.str

View source: R/stringOps.R

normalize.strR Documentation

normalize.str

Description

normalize a string by removing special characters and replacing whitespaces and dots and afterwards remove all leading and trailing whitespaces and special characters By default, underscore is the replacement character. Avoids consecutive underscores.

Usage

normalize.str(x, resolve.camel = FALSE, return.camel = FALSE)

Arguments

resolve.camel

Is the string in camelCase and should this be resolved to snake_case?

return.camel

should camelCase be outputed rather than undescores?

a

string or string vector

Value

the normalized string(s)

Examples

normalize.str("_ (b)lA BLu[bb.blA\tblubb- bla)\n_")

demuellae/muRtools documentation built on Sept. 8, 2023, 4:32 p.m.