a_gsub: Remove all special characters

Description Usage Arguments Value Examples

View source: R/adt_private.R

Description

Remove all special charachers in a string except "_", and change all characters to the lower cases is set lower_case = TRUE.

Usage

1
a_gsub(vec_name, lower_case = TRUE)

Arguments

vec_name

A character string indicating the vector needed to be removed special characters.

lower_case

A logical value indicating the lower case setting. Default "False." If true, all characters will to convert to lower cases.

Value

Returned a string with no special characters except "_"

Examples

1
2
3
4
5
## Not run: 
vec <- "ad*&_ae20"
a_gsub(vec, lower_case = TRUE)

## End(Not run)

olssol/ADTool documentation built on Feb. 12, 2021, 3:49 a.m.