Description Usage Arguments Value
Sometimes we may get a dataframe wich have column names have characters like !&()/.," " These are unwanted obviously coz they make it impossible to reference the column using $ operator or while pipelining So this function removes those characters from the column names.
1 | clean_names(data, idf = c(), sep = "_", use.def = TRUE)
|
data |
A data frame |
idf |
List of unwanted characters/ Identifier |
sep |
Character to substitute/ Separator |
use.def |
Boolean whether to use the default identifier list |
Dataframe with removed characters from the column names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.