R Basics
Lecture Slides Lecture Slides (pdf) Lecture Slides (ipynb)
Tutorial Exercise Tutorial Exercise (pdf) Tutorial Exercise (ipynb)
In this week we discuss the fundamental concepts of programming, such as variables, assignment and object types with application to R. In addition, we start using some built-in functions.
Required Readings
- Wickham Chs 2 Names and Values, 3 Vectors, 4 Subsetting;
- Peng Chs 5 R Nuts and Bolts, 10 Subsetting R Objects, 11 Vectorized Operations;
Additional Readings
- Matloff Chs 2 Vectors, 3 Matrices & Arrays, 4 Lists, 5 Data Frames, 6 Factors & Tables.
- Ross Ihaka and Robert Gentleman. 1996. R: A Language for Data Analysis and Graphics. Journal of Computational and Graphical Statistics 5 (3): 299–31. https://www.doi.org/10.1080/10618600.1996.10474713
Videos
Tutorial
- R core data structures.
- Subsetting and working with attributes.
- Using functions.
Assignment 1 (Blackboard)
- R basics and control flow.
- Due at 12:00 on Monday, 6th October (submission on Blackboard);
- Rename the file from
01_assignment.ipynbto01_assignment_lastname_firstname_studentnumber.ipynbbefore submission.