R for programmers

From the R Graph Gallery curated by Romain Francois

This is a 4-lecture 'graduate skills' course at UCL. R is a high-level programming language with features that make it particularly well suited to manipulating and visualizing data. It is becoming the lingua franca for data mining, according to the New York Times, and it is used by companies such as Google, Pfizer, and Bank of America. In this course you will learn how to use R to summarize data, analyze log files, plot graphs, and explore patterns.

Course contents

Lecture 1. annotated transcript [pptx slides]
When to use R, and when not to use it. Installation. Variables, functions, control structures. Lists. Vectors. Indexing.
[djwutils_2.13.1.zip] [djwutils_2.13.1.tar.gz]
Lecture 2. annotated transcript [data files]
Data frames. Importing data.
Lecture 3. annotated transcript [data files]
Cleaning data. Data processing. Tabulation.
Lecture 4. annotated transcript [data files]
Function arguments. Graphics libraries. Simple plots. Lattice plots. Customizing plots.
Extra topics. annotated transcript [R] [utils.R]
Case study: debugging a distributed system. Attributes. Object-oriented programming. Case study: fancy array.


You must know how to program in some language (e.g. Java, C++, Python, Lisp, Javascript). Prior to the first lecture you should install R on your own computer. Please bring your own laptop to lectures.