clean_names: Clean Names

Description Usage Arguments Value Examples

View source: R/Cleaning.R

Description

Clean names so that quotes (or backquotes) will not be necessary when subsetting the object.
The names input will be cleaned by replacing all occurrences of:

Usage

1
clean_names(vec, short = FALSE)

Arguments

vec

A character vector of names to clean.

short

Whether to shorten certain cleaned name replacements (logical scalar).

Value

A character vector of cleaned names.

Examples

1
2
clean_names(c("apple", "banana", "ab.cd", "ef_gh", "ij/kl", "a_%_b", "a_$_b", "mn__op"))
clean_names(c("a_%_b", "a_$_b"), short = FALSE)

KO112/KO documentation built on Oct. 2, 2020, 9:21 a.m.