str_sanitize: Sanitize strings by removing reserved and non portable...

Description Usage Arguments Details Value Examples

Description

Make a reasonable attempt of converting a string into a preferred standard form to name variables and file names

Usage

1
str_sanitize(vnames, sep = "_", no.accent = TRUE)

Arguments

vnames

character vector to be sanitized

sep

character of replacements, Default: '_'

no.accent

logical, if is to remove accents from vnames, Default: TRUE

Details

str_sanitize() removes or replace the following:

Value

a character vector in lowercase with underscore (sep) to separate nouns

Examples

1
str_sanitize(c("esúpido", "^ ãb ", "..c`a§", "A .xls.xls", "1° dia"))

lhmet/rinmetxls documentation built on May 28, 2019, 11:33 a.m.