R Workshop

The Danube conference 2021 started a new tradition of R workshops focused on the topic of hydrology. These workshops consisted of online broadcasted videoconferences divided into four thematic categories. Recordings of these workshops are available below.

Chapters

  • Introduction, resources, how to install R
  • RStudio interface
  • Basic math operations (defining and saving variables, variables in arithmetic operations)
  • Data types (numeric, logical, character)
  • Data structures (vector, matrix, data frame, list)
  • User-defined and library functions, if-else statements, loops, apply family
  • Reading and writing data
  • Data wrangling with Tidyverse (piping, useful functions)
  • Visualization (Plotting data)
  • Plotting time series with GGPLOT2
  • Data exploration
  • Flood frequency analysis (data, block maxima, empirical flood frequency curve, method of moments, maximum likelihood)
  • Nonstationarity (data, stationary case, non-stationary case, citation of applied packages)
  • Visualization of time series (data, block maxima, empirical flood frequency curve, method of moments, maximum likelihood, using the GGPLOT2 package)
  • Copulas in R (L-moments, fitting a Gumbel copula to the pseudo observations, simulation using copulas)
  • Introduction to spatial analyses in R
  • Loading raster map, masking rasters to a shape polygon
  • Calculating mean elevation and hypsometric curve for a given catchment
  • Reclassification of raster maps and calculation of pixel frequencies
  • New packages (sf and terra)
  • Spatial interpolation – data (exploration and manipulation)
  • Inverse distance weighting interpolation
  • Thiessen polygon (nearest neighbor) interpolation
  • Kriging (variogram fitting, ordinary kriging, external drift kriging)
  • Cross validation
  • Hydrological modelling with R
  • Hydrological modelling with the TUW model
  • Rainfall-runoff modelling using GR4J, GR5J, GR6J and CamaNeige GR6J
  • Rainfall data disaggregation method
  • Final information and thanks to speakers and organizers
  • Bonus – remote tables