Chapter 2 Prepare for Analysis
2.1 Install the Software
- Install R
- Install the R Studio
2.2 Install the packages
Install the following packages by running the command install.packages(“YourPackageName”)
- library(tidyverse)
- library(leaflet)
- library(stringr)
- library(rgdal)
- library(lubridate)
- library(forecast)
- library(kableExtra)
- library(prophet)
- library(xgboost)
- library(caret)
Also do the following for proper formatting of the Datatable
- install.packages(‘webshot’)
- webshot::install_phantomjs()
2.3 Create a R project
- Open R Studio and create a New Project.
- Create a folder input in the New project.
- Create a folder code where you can put all your code files.
2.4 Get the Data
Get the data from Kaggle. Put all the files in the input folder of the project.
Learning Check
- Make sure you have installed all the packages
- Make sure you have downloaded all the files