cleanNames: Clean names by removing special char and accented

View source: R/utils.R

cleanNamesR Documentation

Clean names by removing special char and accented

Description

cleanNames can be used to obtain valid column names by removing non ascii char. All invalid characters would be replaced by chr, an optional character, if provided otherwise they are removed In the same time, all accented character are replaced by a simple equivalent char

Usage

cleanNames(name, chr = "")

Arguments

name

A string to clean by removing non ascii char

chr

A chr used to replace non ascii character

Value

the cleaned string

Examples

x <- "ÁbcdêãçoàúüEssai/=+$67"
cleanNames(x)  # no libraries needed

Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.