The course aims to introduce the basics of the SW suite R for data manipulation and analysis. In particular we will give an overview on arrays and array syntax (vectors, matrix, multi-dimensional arrays, their operations and methods), factors, lists and data frames. Furthermore we will present the basic elements of the language (e.g. types, variables, operators, expressions, statement and flow control construct) and program units (programs, functions and subroutines), with short hints at abstract data types and classes.

The topics will be detailed by means of examples in the context of statistical and technical data analysis, in order to progressively get acquainted with the new constructs.

Target audience

The course is addressed to undergraduate students, PhD students and young researchers willing to learn the basics of R.


  • Brief introduction to the R environment
  • Simple manipulations, numbers, numerical logical and character vectors, vector indexing
  • Matrices and arrays, their operations and basic operations
  • Factors, frequency tables and 1D and 2D statistical variables
  • Lists and data frames
  • Probability distributions
  • Grouped expressions, logical and process flow control statements
  • User-defined functions
  • Statistical models and hypothesis testing



The course will be held in the informatics classroom 3.3 in Via Castelnuovo on the following dates:

  • 27/04/2016 from 17:00 to 19:00 (2 hours)
  • 4/05/2016 from 17:00 to 19:00 (2 hours)
  • 18/05/2016 from 17:00 to 19:00 (2 hours)
  • 25/05/2016 from 17:00 to 19:00 (2 hours)
  • 06/06/2016 from 17:00 to 19:00 (2 hours)
  • 20/06/2016 from 17:00 to 19:00 (2 hours)

Geomatics and Earth Observation laboratory