Introduction to R
library(readr)
data <- read_csv(file="C:/Users/sneha/Downloads/railroad_2012_clean_state.csv")
head(data)
# A tibble: 6 x 2
state total_employees
<chr> <dbl>
1 AE 2
2 AK 103
3 AL 4257
4 AP 1
5 AR 3871
6 AZ 3153
colnames(data)
[1] "state" "total_employees"