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 Oct. 14, 2024, 12:53 p.m.