To Proper
toproper( string, replace_underscores = TRUE, underscore_replacement = " ", return_as = c("titlecase", "uppercase", "lowercase", "asis"), uppers = c("Id", "Aop", "Cat", "Eq", "Tiv") )
string | string to manipulate on |
---|---|
replace_underscores | Logical: if |
underscore_replacement | Character: if argument |
return_as | How should the string be returned? Options are:
|
uppers | Character vector of any strings that should be displayed in upper-case (i.e. TPA, WC, AL, ABC, etc.) |
"Proper" string
s <- "variable_a is awesome" toproper(s)#> [1] "Variable A Is Awesome"