Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nicenames

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

Common Utilities for Other MOSAIC-Family Packages

v0.9.0
GPL (>= 2)
Authors
Randall Pruim <rpruim@calvin.edu>, Daniel T. Kaplan <kaplan@macalester.edu>, Nicholas J. Horton <nhorton@amherst.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.