clean_string | R Documentation |
Cleans a provided string with specified parameters, used primarily as a helper for cleaning column names.
clean_string(
object,
sep = ".",
names = FALSE,
numlead = FALSE,
case = c("title", "lower", "upper", "sentence")
)
object |
Input, either vector or named object (specify |
sep |
What character(s) should be used to separate words within cells |
names |
Specify whether the cleaning should be done on the names of a provided object rather than the object itself |
numlead |
Allows for numbers to remain as the lead character in a
string, default is |
case |
What case should be returned? Allows for title, lower, upper, and sentence |
Vector or object as the same type received, but with text changes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.