Skip to main content

Intermediate Importing Data in R

Parse data in any format. Whether it's flat files, statistical software, databases, or data right from the web.

Start Course for Free
3 Hours10 Videos48 Exercises67,611 Learners
3950 XP

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies


Course Description

In this course, you will take a deeper dive into the wide range of data formats out there. More specifically, you'll learn how to import data from relational databases and how to import and work with data coming from the web. Finally, you'll get hands-on experience with importing data from statistical software packages such as SAS, STATA, and SPSS.

  1. 1

    Importing data from databases (Part 1)

    Free

    Many companies store their information in relational databases. The R community has also developed R packages to get data from these architectures. You'll learn how to connect to a database and how to retrieve data from it.

    Play Chapter Now
    Connect to a database
    50 xp
    Establish a connection
    100 xp
    Inspect the connection
    50 xp
    Import table data
    50 xp
    List the database tables
    100 xp
    Import users
    100 xp
    Import all tables
    100 xp
    How do the tables relate?
    50 xp
  2. 2

    Importing data from databases (Part 2)

    Importing an entire table from a database while you might only need a tiny bit of information seems like a lot of unncessary work. In this chapter, you'll learn about SQL queries, which will help you make things more efficient by performing some computations on the database side.

    Play Chapter Now
  3. 3

    Importing data from the web (Part 1)

    More and more of the information that data scientists are using resides on the web. Importing this data into R requires an understanding of the protocols used on the web. In this chapter, you'll get a crash course in HTTP and learn to perform your own HTTP requests from inside R.

    Play Chapter Now
  4. 4

    Importing data from the web (Part 2)

    Importing data from the web is one thing; actually being able to extract useful information is another. Learn more about the JSON format to get one step closer to web domination.

    Play Chapter Now
  5. 5

    Importing data from statistical software packages

    Next to R, there are also other commonly used statistical software packages: SAS, STATA and SPSS. Each of them has their own file format. Learn how to use the haven and foreign packages to get them into R with remarkable ease!

    Play Chapter Now

In the following tracks

Data Analyst Data ScientistImporting & Cleaning Data
Filip Schouwenaars Headshot

Filip Schouwenaars

Data Science Instructor at DataCamp

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.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA