Description Usage Arguments Examples
View source: R/tidy_colnames.R
Cleans up bad data table names by removing dots ".", spaces, and hyphens, replacing all with an underscore "_"
1 |
data |
data.frame or tibble |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.