Learn R Programming

mosaicCore (version 0.9.4.0)

nice_names: 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)

Value

a character vector

Arguments

x

a character vector

unique

a logical indicating whether returned values should be uniquified.

Examples

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

Run the code above in your browser using DataLab