nicenames: Nice names

nice_namesR Documentation

Nice names

Description

Convert a character vector into a similar character vector that would work better as names in a data frame by avoiding certain awkward characters

Usage

nice_names(x, unique = TRUE)

Arguments

x

a character vector

unique

a logical indicating whether returned values should be uniquified.

Value

a character vector

Examples

nice_names( c("bad name", "name (crazy)", "a:b", "two-way") )

mosaicCore documentation built on Nov. 5, 2023, 9:06 a.m.