countWords | R Documentation |
This function determines how many words are in a string; it assumes that words are separated by either a space or a hyphen.
countWords(x)
x |
A vector or list. This can be any type of data. |
Returns a vector of numbers that is the number of words present
countWords("My cats' names are Lightning and Theo.")
countWords(list("My cats' names are Lightning and Theo.",
"mein hindee seekh rahi hoon", 4.5, TRUE,
"Pharmacogenetic variation in drug-metabolizing enzymes"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.