Intermediate R: Practice

Strengthen your knowledge of the topics you learned in Intermediate R with a ton of new and fun exercises.
Start Course for Free
4 Hours52 Exercises61,945 Learners
4800 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

This follow-up course on Intermediate R does not cover new programming concepts. Instead, you will strengthen your knowledge of the topics in Intermediate R with a bunch of new and fun exercises.

  1. 1

    Conditionals and Control Flow

    Free
    If conditionals are your thing, these exercises will be a walk in the park. Else, let the feedback guide you and add these vital elements of R to your toolkit!
    Play Chapter Now
  2. 2

    Loops

    Looping through data structures is something you'll often do. While and for loops help you do this. Get more practice on them by analyzing the log data from a chemical plant.
    Play Chapter Now
  3. 3

    Functions

    Functions make R powerful: you can isolate chunks of code, wrap them in a function and use them whenever you want. In this set of exercises, you'll practice more on using functions and writing your own functions.
    Play Chapter Now
  4. 4

    The apply family

    lapply, sapply and vapply are all members of R's apply family: they provide a fast and intuitive alternative to the while and for loops you've learned about before. Become an apply pro with some more practice!
    Play Chapter Now
  5. 5

    Utilities

    To finish off these supplementary exercises, you can exercise some more with often-used functions in R, regular expressions and manipulating dates and times.
    Play Chapter Now
Datasets
The 1912 Titanic ship disasterChemical company log files
Prerequisites
Intermediate R
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