· 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.
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.
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