Ready, set, go!
On R-exercises, you will find hundreds of exercises that will help you to learn R. We’ve bundled them into exercise sets, where each set covers a specific concept or function. An exercise set typically contains about 10 exercises, progressing from easy to somewhat more difficult. In order to give you a full picture of all the amazing content on this website, we’ve categorized all sets into broader topics below.
If you’re completely new to R, we suggest you simply start with the first topic, “Vectors”. Once you’ve managed to work through all exercise sets, from top to bottom, you should have a fair amount of knowledge of, and practical experience with, using R. Of course, those of you who are familiar with R already, can jump straight to any of the topics below.
New exercise sets are added on a daily basis. Subscribe to R-exercises to receive daily updates by email.
Note: For future updates to the overview below, please have a look here.
Have fun!
Exercise sets by Topic
Vectors
- Vectors
- Regular sequences
- Logical vectors and operators
- Missing Values
- Character vector exercises
- Index vectors
Object modes and attributes
Factors
Arrays and matrices
Lists and dataframes
- List exercises
- Data frame exercises
- Merging Dataframes Exercises
- Accessing Dataframe Objects Exercises
Importing data
Tables
Data manipulation
- Get-your-stuff-in-order-exercises
- Summary Statistics With Aggregate()
- Data Shape Transformation With Reshape()
Dates/times
Probability distributions
Loops and conditional execution
Functions
Data visualization
- Start plotting data!
- Customize a scatterplot exercises
- Graphics parameters exercises
- 3D plotting exercises
Contributed packages
- Data Table – Data table exercises: keys and subsetting
- Lattice – Lattice exercises – part 1
- Lattice – Lattice exercises – part 2
- Zoo – zoo time series exercises
Thanks for this. A small URL typo: 1. Matrix Exercises contains a trailing ” %u200E” resulting in a broken URL. Commencing with my R exercises….
Thanks for pointing it out Mike! I will make sure to edit the link.
I need to learn R for Data science , is it data visualization in above topics??
And do I need to start from basics of R to study data science R as I’m familiar with other programming languages