How to see the words that were mentioned more than 20 times (tidy r)

Hello.
I want to find out what words were mentioned more than 20 times in the data.
The tibble "sna" is the following:
A tibble: 3,349 x 2
word n

1 president 106
2 iran 93
3 world 83
4 china 81
5 administration 74
6 people 70
7 committee 64
8 department 63
9 time 61
10 biden 60

and I tried the following command:

sna %>% count(word, sort = TRUE, n>20)

But it did not work. What other commands that I can use?

sna %>% filter(n > 20)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.