Course
Introduction to Importing Data in R
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Prerequisites
Introduction to RImporting data from flat files with utils
readr & data.table
Importing Excel data
Reproducible Excel work with XLConnect
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
What prior knowledge do I need for this course?
You should be comfortable with the basics of R, such as working with variables, vectors, and functions. Introduction to R is the only listed prerequisite.
Who is this course designed for?
R users who regularly receive data from external sources and want a reliable, efficient approach to loading it before analysis. It is relevant for analysts and data scientists working with flat files, Excel workbooks, or mixed data sources.
What file formats will I be able to import after completing this course?
You will be able to import CSV and tab-delimited text files using base R and the readr package, Excel workbooks using readxl, and perform more advanced Excel operations such as adding, renaming, and removing sheets using XLConnect.
Why does this course cover multiple packages for importing the same file types?
Each package has different strengths. Base R functions work without additional dependencies, readr and data.table are faster and more consistent for large flat files, and readxl and XLConnect offer progressively more control over Excel workbooks. The course helps you choose the right tool for each situation.
What is the difference between readxl and XLConnect?
readxl is focused on reading Excel files quickly and cleanly. XLConnect goes further, letting you write data back to workbooks, add and remove sheets, and manipulate Excel files directly from R — making it useful when Excel is part of a shared or reproducible workflow.
How is this course structured?
The course has four chapters. Chapter 1 covers importing flat files with base R functions. Chapter 2 introduces readr and data.table for more efficient flat file imports. Chapter 3 covers reading Excel files with readxl. Chapter 4 uses XLConnect to read, write, and manage Excel workbooks from R.
Join over 19 million learners and start Introduction to Importing Data in R today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.