tidy_colnames: Easily tidy the column names of a tibble

Description Usage Arguments Examples

View source: R/tidy_colnames.R

Description

Cleans up bad data table names by removing dots ".", spaces, and hyphens, replacing all with an underscore "_"

Usage

1

Arguments

data

data.frame or tibble

Examples

1
2
3
4
tib <- tibble::tibble("colname.1" = c(1:5),
                      "colname 2" = LETTERS[1:5],
                      "colname-3" = letters[26:22])
tidy_colnames(tib)

jhrcook/jhcutils documentation built on Sept. 2, 2020, 7:16 a.m.