nicenames: Nice names

Description Usage Arguments Value Examples

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

1

Arguments

x

a character vector

unique

a logical indicating whether returned values should be uniquified.

Value

a character vector

Examples

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

Example output

[1] "bad.name"     "name..crazy." "a.b"          "two.way"     

mosaicCore documentation built on Jan. 16, 2021, 5:32 p.m.