From the course: Data Visualization in R with ggplot2

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Loading data sets with read_csv

Loading data sets with read_csv

From the course: Data Visualization in R with ggplot2

Start my 1-month free trial

Loading data sets with read_csv

- [Instructor] When you're working with data in R, all of the data you're working with is stored in memory. However, we usually store our data on disk in files or in databases. Therefore, before we can visualize data, we need to load it into memory for R to be able to access it. The tidyverse contains many different functions to read data into R in a variety of formats. I cover these extensively in the course Data Wrangling in R and encourage you to take that course if you'd like to learn more about importing and manipulating data. For our purposes in this course, we'll just use one function, read_csv. This function loads data from files containing comma separated values. The read_csv function reads each line from the file into one row of a data tibble. The data set that we'll use in this course contains information about colleges and universities in the United States. It's stored in a file called college.csv and I've placed it on a web server where you can access it directly in your…

Contents