SyntaxFix
Write A Post
Hire A Developer
Questions
You can remove double spaces and count the number of " " in the string to get the count of words. Use stringr and rm_white {qdapRegex}
" "
rm_white
str_count(rm_white(s), " ") +1