stand_string: Standardize strings

View source: R/string_treatment.R

stand_stringR Documentation

Standardize strings

Description

Function to correct and standardize names, designed to eliminate special characters, spaces and other characters.

Usage

stand_string(x, chr = NULL, rep = NULL)

Arguments

x

text to be formatted

chr

character vector of replace characters

rep

character vector of replacement characters

Value

Returns data table with definition of utility functions by range

Author(s)

Julio Andrade, Pedro Guarderas, Andrés Lopez pedro.felipe.guarderas@gmail.com

Examples

 x <- c( "H?\u00da\u00e0n with C@1_ad1", 
       "M\u00a1a/\u00ac\u00b0r&\u00eca *_the#-rot", 
       "ju%LI\u00d6 a P\u00e9rs", 
       "(S)tev\n\u00e9n\t los cat%$" )
 y <- sapply( x, FUN = stand_string )
 names( y ) <- NULL

pedroguarderas/mau documentation built on Oct. 30, 2023, 4:20 a.m.