All courses
· beginner

R for Analysis

R from the analyst's end rather than the programmer's: vectors that do arithmetic all at once, data frames you can slice with a condition, and the split-apply-combine habit that answers most questions about a table.

Pathaxis · Original content

Written in house, from the work rather than from a syllabus. Every example is one we would use ourselves, and every exercise is checked against the same engine that grades your answer.

85 min 6 lessons 16 quiz questions 6 exercisesStart course

What you’ll learn

  • Work on a whole vector at once instead of looping over it
  • Pull rows and columns out of a data frame with a condition
  • Answer 'per group' questions with tapply and aggregate
  • Write a function with a sensible default and a clear failure
  • Handle missing values deliberately rather than by accident
  • Turn a working script into something you can run again on new data

Before you start

  • · No prior R. Some experience with data in a spreadsheet helps, but is not required

Syllabus

01

The pieces

Vectors, and the data frame built out of them.

02

Asking questions of a table

Subsetting, grouping, and summarising.

03

Work you can repeat

Functions, awkward data, and a script that survives next month.