clean_names: Clean Data Frame Names

Description Usage Arguments Details Value

View source: R/clean_data.R

Description

Applies some general formatting and replacements to enforce a naming convention that is clear and easy to read, while also ensuring it's valid in the context of data frame column names.

Usage

1

Arguments

x

Input. Either a data frame or a character vector.

Details

Essentially functions as a wrapper for make.names, making some useful substitutions before passing to make.names for final validation. Inputs are given as either a data frame or a character vector, and the return type will correspond to the input.

Value

Data frame or character vector, corresponding to input.


olhmr/utilities documentation built on July 12, 2019, 9:55 p.m.