capitalize | R Documentation |
Make the first character of the elements of a character
vector have upper
case and the rest lower case.
capitalize(x)
x |
A |
The capitalize()
function may be useful when applying lowercased
dictionaries of stoplists, a sentiment dictionary etc. on a CWB corpus that
maintains capitalization (tokens are not lowercased).
This function is inspired by a method Python offers for string objects.
capitalize(c("oil", "corpus", "data"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.