Loved by learners at thousands of companies
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.
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.
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.
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.
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.
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!haven50 xpImport SAS data with haven100 xpImport STATA data with haven100 xpWhat does the graphic tell?50 xpImport SPSS data with haven100 xpFactorize, round two100 xpforeign50 xpImport STATA data with foreign (1)100 xpImport STATA data with foreign (2)100 xpDo you know your data?50 xpImport SPSS data with foreign (1)100 xpExcursion: Correlation50 xpImport SPSS data with foreign (2)100 xp
DatasetsEducation equality dataEmployee dataFlorida election dataInternational socio-economic dataLatitude (XLS)Latitude (XLSX)Big Five dataPotatoesSales dataSwimming poolsSugar import dataWater dataWine data
PrerequisitesIntroduction to Importing Data in R
Data Science Instructor at DataCamp
Filip is the passionate developer behind several of DataCamp's most popular Python, SQL, and R courses. Currently, Filip leads the development of DataCamp Workspace. Under the motto 'Eat your own dog food', he uses the techniques DataCamp teaches its students to understand how users learn on and interact with DataCamp. Filip holds degrees in Electrical Engineering and Artificial Intelligence.