Setting the Working Directory

Before starting to work with R, we need to set the working directory to source file location.

2-Variable assignment

x= 29
y = 12
x
## [1] 29
y
## [1] 12
vector1 = c(5,6,8,9)
vector1[1]
## [1] 5
vector1[2]
## [1] 6
vector1
## [1] 5 6 8 9

3-Arithmetic Operations

12+5
## [1] 17
30*14
## [1] 420

4-Importing Data and Variable Assignment

il_income <- read.csv("data/il_income.csv")
top_il_income <- read.csv("data/top_il_income.csv")