premium course

Importing Data in R (Part 1)

Start Course For Free
  • 11 Videos
  • 42 Exercises
  • 3 hours 
  • 3,181 Participants
  • 3600 XP


Filip Schouwenaars
Filip Schouwenaars

Filip is the passionate developer behind several of DataCamp's interactive courses, covering both R and Python. Under the motto 'Eat your own dog food', he has used the techniques DataCamp teaches its students to perform data analysis for DataCamp. Filip holds degrees in Electrical Engineering and Artificial Intelligence.

Course Description

Importing data into R to start your analyses: it should be the easiest step. Unfortunately, this is almost never the case. Data can come in all sorts of formats, ranging from flat files and statistical software files to databases and web data. Knowing which approach to use is key to getting started with the actual analysis. In this course, you will get started with importing data from flat files and excel files, so you can get up and running in no time!

1Importing data from flat files with utils Free

Lots of data comes in the form of flat files: simple tabular text files. Learn how to import all common formats of flat file data with base R functions.

Importing Excel data 

Excel is a very widely used data analysis tool. If you prefer to do your analyses in R, though, you'll need an understanding of importing CSV data into R. This chapter will show you how to use readxl and gdata to do so.

Start Course For Free

“Thank you for an incredible product. There is no better way to learn R and I never thought I could fall in love with doing this.”

Bjørn Lammerzah, trader at a leading energy asset management enterprise


“Thanks for this amazing platform! I highly enjoy learning through doing.”

Avner Florenthal, head of Business Intelligence at Supersonic


“I LOVE your program! I have been spreading the word about your program and have gotten several other graduate students excited.”

John Swenson, researcher and teaching assistant at San Francisco State University

Read More Stories