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

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.ipynb to 01_assignment_lastname_firstname_studentnumber.ipynb before submission.