clean_names | R Documentation |
Apply make_names
with unique = TRUE
to names of the object and return the object.
clean_names(x, to_lower = TRUE, rename_values = FALSE)
x |
an object with names to change. |
to_lower |
a locigal whether to turn names to lower case. |
rename_values |
a locigal whether to rename last column (values column) as "values". |
an object.
x <- data.frame("col 1!" = c(1,2), "col 2?" = c(2,4), check.names = FALSE)
names(clean_names(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.