April 2017
Beginner to intermediate
420 pages
9h 58m
English
The primary package that we will use is tm, the text mining package. We will also need SnowballC for the stemming of the words, RColorBrewer for the color palettes in wordclouds, and the wordcloud package. Please ensure that you have these packages installed before attempting to load them:
> library(tm) > library(wordcloud) > library(RColorBrewer)
The data files are available for download in https://github.com/datameister66/data. Please ensure you put the text files into a separate directory because it will all go into our corpus for analysis.
Download the seven .txt files, for example sou2012.txt, into your working R directory. You can identify your current working directory and set it with these functions: ...
Read now
Unlock full access