Combine rows of a table

Hello everybody,

I am currently working on a text mining project and have the following problem. I have filtered out the word frequency of certain words, I would like to categorize them by combining rows.

Here's an example:

Token -> n

structured -> 52

structuring -> 12

disconnect -> 5

Separation -> 5

Now I would like to have for "structured" and "structuring" only the word "structure", which then has the sum 52 + 12 = 64. Is this possible? If yes how?

Thank you in advance!

1 Like

Iā€™d suggest stemming the tokens without counting and then you can use group_ by() %>% count()

2 Likes