simplify.text: convert strings to concatenation of lower case alphabet

View source: R/utils.R

simplify.textR Documentation

convert strings to concatenation of lower case alphabet

Description

all characters are converteusd to lower case, and all non-alphabet characters are removed. This is useful for reducing checks on names of user-specified strings, like method arguments. For example, "Carrier-Farrag", "Carrier Farrag", or "carrier_farrag" all get converted to "carrierfarrag".

Usage

simplify.text(string)

Arguments

string

character string

Value

character string

Examples

simplify.text(c("carrier_farrag","CarrierFarrag","Carrier-Farrag"))

timriffe/DemoTools documentation built on Jan. 28, 2024, 5:13 a.m.