char.remove_non_alphanum: Remove non-alphanumeric characters from a string. Optionally...

Description Usage Arguments Examples

View source: R/string.R View source: R/.ipynb_checkpoints/string-checkpoint.R

Description

Remove non-alphanumeric characters from a string. Optionally remove spaces.

Usage

1
char.remove_non_alphanum(string, keep_spaces = TRUE)

Arguments

string

A character string.

keep_spaces

Don't remove spaces.

Examples

1
2
3
4
remove_non_alphanum("222-44-6666")
[1] "222446666"
char.remove_non_alphanum("Devante Smith-Pelly", keep_spaces = F)
[1] "DevanteSmithPelly"

dads2busy/dataplumbr documentation built on July 2, 2021, 3:24 a.m.