Learn R
Learn R for working with data: vectors and data frames, cleaning messy tables, summarizing groups, joining datasets and describing data with statistics and hypothesis tests, all in base R.
- Beginner level
- 8 modules
- 45 lessons
- 175 tasks and questions
Syllabus
01R BasicsRun your first R code and learn the building blocks: arithmetic, comments, data types, variables, vectors, logic, conditionals and functions.9 lessons
02Data FramesStore tables in data frames, read them from CSV files, and select, filter, sort and extend them with base R.7 lessons
03Cleaning DataFind and fix the usual problems in real data: duplicated rows, missing values, numbers stored as text, messy strings and tables in the wrong shape.7 lessons
04Visualizing DataLearn how charts are built from data, aesthetics and geometries, how to read distributions and relationships, and how to compute in R the numbers every chart shows.3 lessons
05AggregatesSummarize whole columns and groups of rows: totals, averages, counts and proportions per category with table(), tapply(), aggregate() and ave().5 lessons
06Joining TablesCombine information spread across several tables: match rows on a key with merge(), keep or drop unmatched rows, handle keys with different names, and stack tables with rbind().4 lessons
07Describing DataDescribe a dataset with numbers: its center (mean, median, mode) and its spread (variance, standard deviation, quantiles and the interquartile range).5 lessons
08Hypothesis TestingDecide whether a difference in data is real or could be chance: null hypotheses, p-values and significance, error types, one- and two-sample t-tests and ANOVA.5 lessons