Description Usage Arguments Details Value Examples
Simple extension of the function [base::make.name()].
1 | clean_names(names, sep = ".", replace.all = TRUE, is.valid = FALSE)
|
names |
character vector to be modified. This is coerced to character if necessary. First processed using base::make.name |
sep |
The string separator. Default is '.'. |
replace.all |
Logical. If TRUE (default) will replace multiple consecutive occurrences of the separator with a single instance. |
is.valid |
Not used. Logical. Test if the final character vector is syntactically valid. |
It will pass the input vector to it but allow the use of other separators other than '.'
clean_name
1 2 3 4 5 6 7 8 9 10 | some_col <- c(
"I once",
"got some weird",
"tables",
"from.a.collaborator")
clean_names(some_col)
clean_names(some_col, replace.all=F, sep="_")
clean_names(some_col, sep="_")
clean_names(some_col, sep="+")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.