Convert text for label printing
labelify(x, underscoresToSpaces = TRUE, dotsToSpaces = TRUE,
toTitleCase = TRUE, capitalize.strings = c("id"),
stringsToSpaces = c("\\$"))
String: Input
Logical: If TRUE, convert underscores to spaces. Default = TRUE
Logical: If TRUE, convert dots to spaces. Default = TRUE
Logical: If TRUE, convert to Title Case. Default = TRUE
String, vector: Always capitalize these strings, if present. Default = "id"
String, vector: Replace these strings with spaces. Escape as needed for gsub
.
Default = "\$", which formats common input of the type data.frame$variable