nwords | R Documentation |
Counts and returns the number of words in each element of a character vector.
nwords(x)
Number of words in a string
# Number of words
phrases <- c("Words", "Two words", "This is four words.")
nwords(phrases)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.