Zählen Sie das Wort in einer Zeichenfolge 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+')