cleanup_colnames: Standardize column names

Description Usage

View source: R/cleanup_colnames.R

Description

This function takes a dataframe and changes column names in the following order: 1) Trims whitespace on both sides, 2) converts to uppercase, 3) replaces punctuation of any length with a single underscore, 4) removes trailing underscores from native column names that often times have trailing punctuation (usually decimals)

Usage

1
cleanup_colnames(dataframe)

patelm9/somersault2 documentation built on Dec. 16, 2019, 12:45 a.m.