During our analysis, we will make use of various R packages. So, let’s look at what these packages are and let’s install and load them in R.
‘Dplyr’ provides a set of tools for efficiently manipulating datasets in R. The problem in most data analyses is the time it takes for you to figure out what to do with your data, and dplyr makes this easier by having individual functions that correspond to the most common operations (group_by, summarise, mutate, filter, select and arrange). Each function does one only thing, but does it well.
Install and Load dplyr
> install.packages('dplyr’) > library(dplyr)
There are four main families of functions in stringr:
- Character manipulation: these functions allow you to manipulate individual characters within the strings in character vectors.
- Whitespace tools to add, remove, and manipulate whitespace.
- Locale sensitive operations whose operations will vary from locale to locale.
- Pattern matching functions. These recognise four engines of pattern description. The most common is regular expressions, but there are three other tools.
> install.packages('stringr') > library('stringr')
Data visualization library
> install.packages(‘ggplot2’) > library('ggplot2’)
Classification and Regression Training
This package makes dealing with dates a little easier.
Visualization of a correlation matrix
Regression Modelling Strategies
> install.packages(“e1071") > library(e1071)
> install.packages(“kernlab") library(kernlab)