knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Load the package

library(RedditText)

Collecting data and creating wordcloud

We want a word cloud of the latest 500 posts from the subreddit r/Rabbits.

num_posts <- 500
subreddit <- "Rabbits"
words <- get_word_freq(num_posts, subreddit)
knitr::kable(head(words))


JoshuaBean/RedditText documentation built on June 7, 2019, 2:35 p.m.