Chapter 28 Prepare for Analysis

28.1 Install the Software

  1. Install R
  2. Install the R Studio

28.2 Install the packages

Install the following packages by running the command install.packages(“YourPackageName”)

  • library(tidyverse)
  • library(leaflet)
  • library(leaflet.extras)
  • library(knitr)
  • library(kableExtra)

28.3 Create a R project

  1. Open R Studio and create a New Project.
  2. Create a folder input in the New project.
  3. Create a folder code where you can put all your code files.

28.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