properCase | 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 |
pre |
a character string to prepend to each character string
in |
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)
.
ordinal
.
## produces "myBasketBall" "mySoccerBall" ## "myFootBall" properCase(c("baSkeT","SoCcEr","foot"),post="Ball",pre="my")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.