Serdar Balci has completed

# Intermediate R: Practice

4 hours
4,800 XP

## 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.

### .css-1goj2uy{margin-right:8px;}Group.css-gnv7tt{font-size:20px;font-weight:700;white-space:nowrap;}.css-12nwtlk{box-sizing:border-box;margin:0;min-width:0;color:#05192D;font-size:16px;line-height:1.5;font-size:20px;font-weight:700;white-space:nowrap;}Training 2 or more people?

Try DataCamp for BusinessFor a bespoke solution book a demo.
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
100 xp
100 xp
50 xp
Basic queries
100 xp
Build aggregates
100 xp
Logical operator
100 xp
Build aggregates (2)
100 xp
if, else
50 xp
if, else: DIY
100 xp
else if
100 xp
Embed if-else clauses
100 xp
Operations and controls expertise
100 xp
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.

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.

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!

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.

### GroupTraining 2 or more people?

Datasets

The 1912 Titanic ship disasterChemical company log files

Prerequisites

Intermediate R
Filip Schouwenaars

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, a collaborative data science notebook. Under the motto 'Eat your own dog food', he uses Workspace to understand how users learn on and interact with DataCamp. Filip holds degrees in Electrical Engineering and Artificial Intelligence.
See More