make_names | R Documentation |
make.names()
function.Makes R-compatible column names by removing spaces, points and other uncommon characters from dataframe column names and unifies their typography.
make_names(df = NULL, typo = c("capital", "small"))
df |
A data.frame |
typo |
Specify the column names typography. Use 'capital' for capital letters and 'small' to transform your column names into small letters. |
A data.frame with well-formated column names
cars_cleaned <- make_names(cars)
head(cars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.