A series of example functions for working with text data in R. These are a good starting point but in practice are likely to need a little tweaking.
Example R functions that:
- Import data
- Clean the data (remove punctuation, lemmatise the words, etc.
- Visualise the data (wordclouds, bigram networks, word association networks, etc.
- Perform topic modelling and explore the resulting topics
Example dashboard that incorporates the functions above (applied to the text of Jane Austen's Emma produced using the flexdashboard
package. The resulting dashboard can be found here:
https://kai-data-exploitation.github.io/Text-Functions/dashboard.html