I have a character vector containing basically paragraphs of words. I would like to count the number of times a specific word appears in each row separately and then create a new vector to hold this number. How can I achieve this with dplyr? (Any other method available is also okay).
The closest I've come to a solution is on this link: Count number of times a word appears (dplyr) but it's not giving me exactly what I want.
You can split the paragraphs by their separator and sum the conditional check: