View source: R/make_clean_names.R
make_clean_names | R Documentation |
Pipe-friendly function to make syntactically valid names out of character vectors.
make_clean_names(data)
data |
a data frame or vector |
a data frame or a vector depending on the input data
# Vector make_clean_names(c("a and b", "a-and-b")) make_clean_names(1:10) # data frame df <- data.frame( `a and b` = 1:4, `c and d` = 5:8, check.names = FALSE ) df make_clean_names(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.