Getting started with R
Arithmetic, objects, vectors, data frames, the $ operator, head and max.
Inspect USArrests, find two variable maxima, and explain one result in a sentence.
An independent bridge between the student's first four UCL statistics/R practicals and the ferdo R Lab + Statistics Lab learning programmes.
Start at Lesson 1Teacher’s Kit — Weeks 1–6: Line-by-line R explanations, expected outputs, instructor prompts and session plans. Open the Instructor Kit →
New: supplemental Weeks 5–6 · Original fictional-data exercises; the Week 5–6 Moodle files have not yet been inspected. Explore the proposed Weeks 5–6 →
Download the original four-week companion pack: Fictional CSV datasets, 4 student R worksheets, 4 worked instructor solutions and bilingual README. Browse the package / Download ZIP →. Original UCL course files are not redistributed.
Open instructor resources: Preparation guide, 90-minute session plan, original worked R examples and mock assessment at the UCL PALS Open Instructor Desk. No private sign-in required.
4 November · Today’s 90-minute lesson · A first-session timeline, questions, student practice and homework options. Open the lesson plan →
New to programming? Before Week 1, use our original What Is Programming? · Lesson 0 with a five-person synthetic example and starter R exercises.
Step-by-step R code guide · Explore step-by-step explanations, fictional examples and source mappings for the four weeks. Step-by-step R code guide →
Arithmetic, objects, vectors, data frames, the $ operator, head and max.
Inspect USArrests, find two variable maxima, and explain one result in a sentence.
Read CSV, join on two keys, select, filter, arrange, mutate, group_by and summarise.
Join participant information to repeated measurements; identify the actual pre/post groups.
Wide/long data, pivot_longer, scoring lookups, mean, SD, range and histogram.
Score all ten items with lookup tables, then describe participant totals and their distribution.
ggplot2 histograms, scatterplots, box/violin plots, mean ± SD, facets and themes.
Show one distribution and one relationship in two charts, including what the charts cannot show.
The student reports studying in UCL Psychology and Language Sciences (PALS). A supplied lecture handout is headed “Introduction to Statistical Methods”. The exact enrolled UCL module code is not yet confirmed, so this is not presented as an official UCL syllabus.
The original UCL PDFs, R worksheets and associated CSV files were supplied privately by the student. They are not reposted here. Use the originals provided in your course together with the supplementary practice ZIP shared privately by your tutor.