dgrtwo / tidy-text-mining

Manuscript of the book "Tidy Text Mining with R" by Julia Silge and David Robinson
http://tidytextmining.com
Other
1.31k stars 803 forks source link

Replace superseded top_n with slice_min/slice_max #89

Closed arencambre closed 2 years ago

arencambre commented 3 years ago

https://github.com/dgrtwo/tidy-text-mining/blob/dffbcc9d538f816cb8e545f039fa8f9ce6f5313a/02-sentiment-analysis.Rmd#L265 This line is an example of use of top_n. It is in some other areas, too.

Per its documentation, top_n has been superseded and should be replaced with slice_min or slice_max.