a_gsub: Remove all special characters

View source: R/adt_private.R

a_gsubR Documentation

Remove all special characters

Description

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

Usage

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

## Not run: 
vec <- "ad*&_ae20"
a_gsub(vec, lower_case = TRUE)

## End(Not run)



Thewhey-Brian/ADTools documentation built on July 1, 2022, 2:08 a.m.