Stand.String: Standardize strings

Description Usage Arguments Value Author(s) Examples

View source: R/Stand.String.R

Description

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

Usage

1
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<c3><a9>s Lopez pedro.felipe.guarderas@gmail.com

Examples

1
2
3
4
5
6
 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

Example output



mau documentation built on May 1, 2019, 8:23 p.m.