fread
You still remember how to use read.table(), right? Well, fread() is a function that does the same job with very similar arguments. It is extremely easy to use and blazingly fast! Often, simply specifying the path to the file is enough to successfully import your data.
Don't take our word for it, try it yourself! You'll be working with the potatoes.csv file, that's available in your workspace. Fields are delimited by commas, and the first line contains the column names.
This exercise is part of the course
Importing Data in R (Part 1)
Exercise instructions
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# load the data.table package
# Import potatoes.csv with fread(): potatoes
# Print out potatoes