Created
January 5, 2014 00:15
-
-
Save PhDP/8262610 to your computer and use it in GitHub Desktop.
A horrible function to titleize an R string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
titleize = function(title) { | |
substr(title, 1, 1) = toupper(substr(title, 1, 1)) | |
return(title) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment