Description Usage Arguments Value Note Examples
A helper function for word_list
that
allows the user to supply vectors of words to be
capitalized.
1 2 | capitalizer(text, caps.list = NULL, I.list = TRUE,
apostrophe.remove = FALSE)
|
text |
A vector of words (generally from bag.o.words or breaker). |
caps.list |
A list of words to capitalize. |
I.list |
logical. If TRUE capitalizes I words and contractions. |
apostrophe.remove |
logical, asking if apostrophes have been removed. If TRUE will try to insert apostrophe's back into words appropriately. |
Returns a vector of capitalized words based on supplied capitalization arguments.
Not intended for general use. Acts as a helper function to several qdap functions.
1 2 | capitalizer(bag.o.words("i like it but i'm not certain"), "like")
capitalizer(bag.o.words("i like it but i'm not certain"), "like", FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.