properCase {ifultools} | R Documentation |
Converts a character string with arbitrary case to a character string whose first character is capitalized and remaining characters are set to lower case.
properCase(x, pre="", post="", sep="")
x |
a character string or vector of character strings. |
post |
a character string to append to each character string
in x after conversion. Default: "" . |
pre |
a character string to prepend to each character string
in x after conversion. Default: "" . |
sep |
a character string that is pasted between
the other portions of the combined string ala
pre-sep-formatted x-sep-post. Default: "" . |
a vector of character strings containing the result. The length
of this vector is equal to length(x)
.
## produces "myBasketBall" "mySoccerBall" ## "myFootBall" properCase(c("baSkeT","SoCcEr","foot"),post="Ball",pre="my")