Cuenta la palabra en una cadena r
library(stringr)
str_count(string = "How many words are in this sentence", pattern = '\\w+')
Trustworthy Whale
library(stringr)
str_count(string = "How many words are in this sentence", pattern = '\\w+')