Importing Data Using read.csv in R

Premium

R provides a variety of functions for importing data files. The most common functions which we will use are read.csv()read.delim(), and read.table(). These functions are loaded in R by default as a part of the utils package when you start R.

read.csv()

read.csv() is used to import csv (comma separated values) files. R imports the data into a data frame.

Unlock Premium Content

Upgrade your account to access the full article, downloads, and exercises.

You'll get access to:

  • Access complete tutorials and examples
  • Download source code and resources
  • Follow along with practical exercises
  • Get in-depth explanations