Programming in R / R classes and methods

Course title: Programming in R / R classes and methods
Course code: ISRIC-RCLS
Subject areas (Curriculum): Software tools
Duration: 0.5-3 days
Short description:

R is a platform for statistical computing. Diversity of contributed packages in R allow one to combine statistical computing with e.g. geographical computing, database queries, web-crawling and similar. Once an user becomes experienced with the basic functionality, the next step is to write/develop R extensions i.e. new functions and/or packages. This block will review classes and methods in R - why do we need them and how to make them to fit our application - and provide a number of simple examples of good use.


Moderators: T. (Tom) Hengl
Target audience: Experienced to advanced users of R and open source GIS (GDAL, GRASS, SAGA GIS) interest to build their own applications either via functions or via a stand-alone package. This course mainly aims at people working with extensively using soil data.
Requirements: Knowledge requirements:
  • R programming (advanced)
  • Soil science / soil survey topics (advanced)
  • GIS modelling (basic)
Programme:
  1. R classes (S4) and methods - an overview (1.5 hrs)
  2. Creating new classes and methods (1.5 hrs)
  3. Make new functions and test them (1.5 hrs)
  4. Make a small package for R (3-5 functions; 1.5 hrs)
Software / materials: Participants typically come with their own laptop Software:
Case studies: Some simple problems from soil science (conversion of soil texture by hand to soil texture fractions and plotting of soil colors)
Literature:
Minimum number of participants: 5
Maximum number of participants: 25
Further inquiries: Tom Hengl