This is script to run a simple text mining exercise in R-Shiny. It includes the ability to
- load data and filter on a category
- load in stopwords and add to stopwords list
- see tokens and frequency
You must have R or R studio installed on your computer. The app is contained in two files, the interface part (ui.R) and the operational part (server.R), and everything is run through the main file (main.R).
You will need a data input file, structured as such:
and a stopwords file, structured as such:
Because I created the dropdown to contain the list of categories for subsetting the data, the data input file must be loaded in first, then the shiny app run. In order to apply the app to a different dataset, everything must be run again 🏃
Thanks to all the open source code out there that helped me in creating this thing! The two main resources I used to debug and figure out how to code the UI experience I wanted are: