9 Tutorial: Analyze Data with stminsights

You have put so much hard work into learning R. Now it’s time to enjoy the results! A convenient way to investigate text data is the `stminsights R package that creates an app on your machine in which you can inspect topic within your text data interactively.

Let’s install and load stminsights.

install.packages("stminsights")
library(stminsights)

Now it’s time to start our app! Download the file shiny_model from LRZ Sync and Share and place them in a folder of your choice. The shiny_model is a screen capture of my R environment in which I’ve prepared the data collected from Bardeen in a dataset called lda (a preprocessed version of the text data from Bardeen). Preprocessed means that I’ve already used dplyr and stringr to get rid of a few nasty words in the data that are of no interest to us, e.g. “der, die, das, dieser, dieses”, etc.!

Then run this code in R:

run_stminsights()

Next, click on “browse” and upload the file called “shiny_model”. Now you can inspect the conversations on Twitter.