## Not run:
# ## connect to the Mongo database
# mongo <- mongo.create("SMAPP_HOST:PORT", db="DATABASE")
# mongo.authenticate(mongo, username="USERNAME", password="PASSWORD", db="DATABASE")
# set <- "DATABASE.COLLECTION"
#
# ## extract text from all tweets in the database
# tweets <- extract.tweets(set, fields="text")
#
# ## count words
# wordFreq <- word.frequencies(tweets$text)
# ## End(Not run)
Run the code above in your browser using DataLab