powered by
A helper function for word_list that allows the user to supply vectors of words to be capitalized.
word_list
capitalizer(text, caps.list = NULL, I.list = TRUE, apostrophe.remove = FALSE)
A vector of words (generally from bag_o_words or breaker).
bag_o_words
breaker
A list of words to capitalize.
logical. If TRUE capitalizes I words and contractions.
TRUE
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 RUN { 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) # }
Run the code above in your browser using DataLab