R is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. To interact with R, we use RStudio.
####Windows
Install R by downloading and running this .exe file from CRAN. Also, please install the RStudio IDE.
####Mac OS X
Install R by downloading and running this .pkg file from CRAN. Also, please install the RStudio IDE.
####Linux
You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base
and for Fedora run sudo yum install R
). Also, please install the RStudio IDE.
Make sure that your Java Runtime-Environment (JRE) installation is up to date. Your JRE version should be at least 1.7.
####Windows
For Windows, visit this page to download Windows x64 package of JRE JRE version 8, and then follow the installation instructions. You can browse to this website to test your installation. (Note: This won't work in Chrome)
####Mac OS X
If your OS is up-to-date, you should have at least Java 1.7. You can update your OS using Software Update.
See here for more detailed information.
You can browse to this website to test your installation. (Note: This won't work in Chrome)
####Linux
For Linux, visit this page to download Linux x64 package of JRE JRE version 8, and then follow the installation instructions.
-
tm
# text mining in R -
RTextTools
# a machine learning package for text classification -
qdap
# quantiative discourse analysis -
qdapDictionaries
# for sentiment analysis, etc -
entropy
# tools applying Information Theory -
dplyr
# data preparation and pipes$>$ -
ggplot2
# for plotting -
SnowballC
# for stemming -
matrixStats
# for stats -
data.table
# for easier data manipulation -
scales
# to help us plot -
lsa
# latent semantic analysis -
cluster
# for clustering analysis -
fpc
# flexible procedures for clustering -
mallet
# a wrapper around the Java machine learning tool MALLET -
wordcloud
# to visualize wordclouds -
rJava
# dependency for mallet - Any dependencies to the packages above.
To install these packages, you can open RStudio and use the command install.packages()
in the console. For example, to install the tm
package, you would type:
install.packages('tm')
Make sure to use quotation marks around the name of the package.
If RStudio returns an error message, go to "Preferences" and check the "Packages" section. Under "CRAN Mirror," if no mirror is selected, choose "Global (CDN) - RStudio". Otherwise, check your internet connection.