Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

count word in a string r

library(stringr)
str_count(string = "How many words are in this sentence", pattern = 'w+')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #word #string
ADD COMMENT
Topic
Name
8+1 =