Skip to content

Instantly share code, notes, and snippets.

@PhDP
Created January 5, 2014 00:15
Show Gist options
  • Save PhDP/8262610 to your computer and use it in GitHub Desktop.
Save PhDP/8262610 to your computer and use it in GitHub Desktop.
A horrible function to titleize an R string.
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