# Default:
s3 <- c("A first sentence.", "The second sentence.",
"A third --- and also THE FINAL --- SENTENCE.")
count_words(s3) # case-sensitive, sorts by frequency
# Options:
count_words(s3, case_sense = FALSE) # case insensitive
count_words(s3, sort_freq = FALSE) # sorts alphabetically
Run the code above in your browser using DataLab