View source: R/format_column_names.R
format_column_names | R Documentation |
Substitutes blank space " " in column names of the input data frame with "_". If there is no " " in the column names, return the data frame.
format_column_names(df)
df |
A data frame |
A data frame with no " " in its column names
df <- data.frame(`col Name 1` = c(1, 2), `col Name 2` = c(3, 4), check.names = FALSE) format_column_names(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.