Free account25 graded exercises a month, with your XP and progress savedFree plan25 of 25 left this month Hubs you start stay open all monthSign inCreate free accountGo unlimited
The practice workbook
R sticks when you write it, not when you read about it. Each problem here checks your answer the moment you run it, so you always know which skills you own and which need another rep.

Predict the outputHard
x <- c("10", "5", "20")
as.numeric(factor(x))[1] 1 3 2Correct · +50 XPFeatured problem sets
17 hand-picked sets, grouped by what you're practicing for.
Interview prep
R Interview Questions (Top 50)50Statistics Interview Questions25ML Interview Questions25A/B Testing Interview Cases20SQL to dplyr Translations30Take-Home Simulator15
Open Interview prep →The Exercises Wall
Sign in and every solve shows up here, by difficulty, by day and by topic.
0of 3,461 solved
Easy0 / 618
Medium0 / 1,850
Hard0 / 993
0 solves in the last 6 months0 active days · longest streak 0 days
LessMore
Browse by topic
130 hubs in 9 topics. 7 of them end with a timed mastery quiz.
No hub matches that search.
1R FundamentalsVectors, data frames, functions, and the base R muscle memory everything else builds on.0 / 397 solved
1.1R Beginner Exercises0/30605 XP1.2R apply Family0/20510 XP1.3R Lists0/24595 XP1.4R for Data Science Exercises0/501,245 XP1.5R Data Frames0/17465 XP1.6Functional Programming0/18490 XP1.7R Vectors0/18490 XP1.8R Control Flow0/18515 XP1.9R Date & Time0/20540 XP1.10OOP in R0/20590 XP1.11R Subsetting0/20590 XP1.12purrr Exercises0/30875 XP1.13R Basics0/18530 XP1.14R Functions0/18530 XP1.15R Debugging Exercises0/18580 XP1.16Apply Family Exercises0/20580 XP1.17Loops vs Vectorization Exercises0/20580 XP1.18R Strings0/18545 XP
Finished here? Take the R Fundamentals Quiz (12 min) to check what stuck.Start quiz →
Finished here? Take the R Interview Readiness Quiz (12 min) to check what stuck.Start quiz →
Finished here? Take the Functional Programming Quiz (12 min) to check what stuck.Start quiz →
2Data WranglingImport, clean, reshape, and join real datasets with dplyr, tidyr, and friends.0 / 738 solved
2.1dplyr0/15425 XP2.2Tidyverse Exercises0/501,390 XP2.3Data Import0/17465 XP2.4API Calls Exercises0/17515 XP2.5purrr0/13430 XP2.6Missing Data in R0/19565 XP2.7dplyr filter() & select()0/20515 XP2.8data.table0/20540 XP2.9dbplyr / SQL Exercises0/20565 XP2.10Regex Exercises0/25725 XP2.11data.table Exercises0/501,450 XP2.12dplyr Window Functions Exercises0/25725 XP2.13lubridate Exercises0/28775 XP2.14stringr Exercises0/28775 XP2.15readr Exercises0/28800 XP2.16Data Cleaning Exercises0/28825 XP2.17Web Scraping Exercises0/17505 XP2.18tidyr Reshaping0/18480 XP2.19tidyr Pivot Exercises0/18505 XP2.20Date-Time Manipulation Exercises0/18530 XP2.21tidyr Exercises0/30900 XP2.22Data Wrangling Exercises0/501,430 XP2.23dplyr Exercises0/501,430 XP2.24dplyr Joins0/20605 XP2.25forcats Exercises0/28890 XP2.26dplyr group_by Exercises0/25755 XP2.27dplyr Joins Exercises0/25805 XP2.28dplyr group_by() & summarise()0/18570 XP2.29tidyr Nest/Unnest Exercises0/18595 XP
Finished here? Take the dplyr Quiz (12 min) to check what stuck.Start quiz →
Finished here? Take the tidyr Quiz (12 min) to check what stuck.Start quiz →
3VisualizationCharts that read clearly, from a first ggplot2 bar chart to themed, faceted figures.0 / 395 solved
3.1ggplot20/15425 XP3.2ggplot2 Themes Exercises0/20525 XP3.3EDA Exercises0/501,335 XP3.4ggplot2 Heatmap Exercises0/20565 XP3.5ggplot2 Facets0/15455 XP3.6ggplot2 Color Scales Exercises0/20615 XP3.7leaflet Exercises0/20615 XP3.8ggplot2 Geoms0/16455 XP3.9ggplot2 Exercises0/501,465 XP3.10ggplot2 Aesthetics0/18530 XP3.11Data Viz Exercises0/25740 XP3.12ggplot2 Facets Exercises0/20580 XP3.13plotly Exercises0/20630 XP3.14ggplot2 Bar Chart Exercises0/18570 XP3.15ggplot2 Customization0/18570 XP3.16R Visualization Project (5 charts)0/501,725 XP
Finished here? Take the ggplot2 Quiz (12 min) to check what stuck.Start quiz →
4StatisticsProbability, tests, confidence intervals, and regression, practiced until the output makes sense.0 / 743 solved
4.1Probability in R Exercises0/15440 XP4.2Probability Distributions0/25685 XP4.3Mixed Effects Exercises0/18615 XP4.4A/B Testing Exercises0/20540 XP4.5ANOVA Exercises0/15405 XP4.6Linear Regression0/501,350 XP4.7Chi-Square Exercises0/20565 XP4.8t-Test Exercises0/20565 XP4.9R Probability Distributions0/20590 XP4.10Experimental Design Exercises0/20615 XP4.11Binomial Distribution Exercises0/17480 XP4.12Confidence Interval0/18480 XP4.13Nonparametric Exercises0/18505 XP4.14Multiple Testing0/18530 XP4.15A/B Testing Exercises0/18555 XP4.16Power Analysis Exercises0/18580 XP4.17Correlation Exercises0/20580 XP4.18Poisson Regression0/20580 XP4.19Sampling Methods Exercises0/20580 XP4.20Survey Analysis Exercises0/20605 XP4.21broom Exercises0/20605 XP4.22PCA Exercises0/20630 XP4.23GLM Exercises0/22705 XP4.24Central Limit Theorem Exercises0/16470 XP4.25SEM Exercises0/16570 XP4.26Logistic Regression Exercises0/25755 XP4.27Regression Diagnostics Exercises0/25755 XP4.28Hypothesis Testing Exercises0/25780 XP4.29Clustering Exercises0/17495 XP4.30Poisson Distribution Exercises0/17520 XP4.31Ridge & Lasso Exercises0/18545 XP4.32Post-Hoc Tests Exercises0/18570 XP4.33Survival Analysis Exercises0/18570 XP4.34Bayesian Statistics Exercises0/20670 XP4.35Multiple Regression Exercises0/21695 XP4.36Repeated Measures0/17560 XP4.37GAM Exercises0/18635 XP
Finished here? Take the Hypothesis Testing Quiz (12 min) to check what stuck.Start quiz →
Finished here? Take the Linear Regression Quiz (12 min) to check what stuck.Start quiz →
5Time SeriesDates, decomposition, and ARIMA forecasting drills.0 / 255 solved
5.1Exponential Smoothing Exercises0/501,385 XP5.2Time Series Exercises0/30835 XP5.3Forecast Evaluation Exercises0/501,525 XP5.4Decomposition Exercises0/501,505 XP5.5Time Series in R Exercises0/501,530 XP5.6ARIMA Exercises0/25770 XP
Finished here? Take the Time Series Quiz (12 min) to check what stuck.Start quiz →
6Machine LearningTrain, validate, and tune models: trees, forests, boosting, clustering.0 / 194 solved
6.1Machine Learning Exercises0/501,405 XP6.2Decision Tree Exercises0/18490 XP6.3XGBoost Exercises0/20590 XP6.4tidymodels Exercises0/25790 XP6.5Random Forest Exercises0/20580 XP6.6caret Exercises0/21630 XP6.7Clustering Exercises0/20670 XP6.8Cross Validation Exercises0/20695 XP
Finished here? Take the Machine Learning Quiz (12 min) to check what stuck.Start quiz →
7Advanced RPerformance, packages, testing, and Shiny apps.0 / 105 solved
7.1Parallel Computing Exercises0/23660 XP7.2R Performance Exercises0/20565 XP7.3testthat Exercises0/17480 XP7.4R Package Development0/20630 XP7.5Shiny Exercises0/25855 XP
Finished here? Take the Shiny Quiz (12 min) to check what stuck.Start quiz →
8ReportingR Markdown documents and publication tables.0 / 48 solved
9SpecializationsDomain practice: finance, genomics, healthcare, marketing, spatial, text.0 / 179 solved
9.1Network Analysis Exercises0/20565 XP9.2R for Biostatistics0/20615 XP9.3R for Healthcare Exercises0/20665 XP9.4R for Finance Exercises0/25875 XP9.5Text Mining Exercises0/20630 XP9.6R for Sports Analytics0/20680 XP9.7R for Marketing Analytics0/20730 XP9.8Spatial Analysis Exercises0/15470 XP9.9R for Genomics0/19695 XP
Mastery quizzes
11 timed quizzes, 12 minutes each. Each one also appears at the end of its topic above.
R Fundamentals QuizR Fundamentals · 12 minR Interview Readiness QuizR Fundamentals · 12 minFunctional Programming QuizR Fundamentals · 12 mindplyr QuizData Wrangling · 12 mintidyr QuizData Wrangling · 12 minggplot2 QuizVisualization · 12 minHypothesis Testing QuizStatistics · 12 minLinear Regression QuizStatistics · 12 minTime Series QuizTime Series · 12 minMachine Learning QuizMachine Learning · 12 minShiny QuizAdvanced R · 12 min