namify | R Documentation |
Converts hogwash variable names to proper variable names.
namify(x)
x |
A character vector or a data.frame |
The following changes are made to the text
Change . to _
Remove leading/trailing spaces, (, )
Change %
to pct
Change interior space to underscore
Change all characters to lower case
Remove punctuation
If text begins with number, prefix with n
df_with_proper_variable_names <- namify(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.