November 2017
Beginner to intermediate
204 pages
5h 23m
English
You can read a CSV dataset into the R environment using the read.csv() function, which accepts a path string to a CSV file and returns an R dataframe. Variable assignment in R is done using the <- symbol, which is more or less analogous to the = symbol in Python. After the working directory is properly set, the following line will read artificial_roads_by_region.csv and assign the resulting data to an R dataframe called roads:
roads <- read.csv("data/artificial_roads_by_region.csv")
Read now
Unlock full access