Lists (aka recursive vectors) are the main data structure in R. Since lists are omnipresent (data.frames are a special sybtype) having a deeper understanding of them will make for a more enjoyable data analysis and helps avoid bugs. Solutions are available here. Exercise 1 Create a list called x with two elements; two vectors of […]

## Working With Air Quality and Meteorological Data – Part 9: Exercises

Atmospheric air pollution is one of the most important environmental concerns in many countries around the world; it is strongly affected by meteorological conditions. In this set of exercises, we will use the openair package to work and analyze air quality and meteorological data. This package provides tools to directly import data from air quality measurement […]

## R FOR HYDROLOGISTS – Part 3: Loading and Plotting Data: Exercises

R FOR HYDROLOGISTS LOADING AND PLOTTING THE DATA (Part 3) Creating a box plot of the data can be a good approach to inspect the historical behavior of the river level and can show us how the data spreads in different time indexing (Month/ Year). If you are not familiar with this, a boxplot is […]

## How To Plot Air Pollution Data With Openair: Exercises

INTRODUCTION The openair package is specifically designed to plot air pollution data. This tutorial will give a brief introduction to many of the plotting functions in openair. This tutorial will cover the following openair functions. SummaryPlot() windRose() pollutionRose() percentileRose() timePlot() calendarPlot() Before proceeding, please follow our short tutorial. Look at the examples given and try […]

## MCMC Using STAN – An Introduction With The RSTAN Package: Exercises

This blog post is the first of a set of exercises about STAN that will introduce the STAN platform and how to link it with R. STAN is a statistical modeling platform that is used as an example for MCMC computations for Bayesian inference. It is more efficient for most analysis since it is written in […]

## Modeling With ANCOVA – Part 2: Exercises

In this 2nd part of ANCOVA modeling exercises, we will focus on the extend of ANCOVA visualization using the predict function. The function will help us to plot the linear regression of ANCOVA and also predict other useful information that aids our interpretation (We’ll see later.) The previous exercise can be found here. Answers to these […]

## Create XLSX Files With R – Part 2: Exercises

One of reasons to use R is to avoid using Excel for complex data processing. But, this does not mean one should not use Excel at all. There are some good reasons for it, including communication with non-coding co-workers being probably the most important of them all. To ensure smoothness of workflow consisting of analysis […]

## Advanced Techniques With Raster Data – Part 2: Supervised Classification

Background In supervised classification, contrary to the unsupervised version, a priori defined reference class is used as additional information. This initial process determines which classes are the result of the classification. Usually, a statistical or machine-learning algorithm is used to obtain or “learn” a classification function from a set of training examples. This is then […]

## R FOR HYDROLOGISTS – Part 2: Loading and Plotting Data: Exercises

R FOR HYDROLOGISTS LOADING AND PLOTTING THE DATA (Part 2) In hydrology, it is very common to analyze the annual behavior of the levels in order to see if there is any recurrent patterns over the year (seasonality.) In order to observe the historical behavior of the river, we have to construct a plot with […]

## Working With Air Quality and Meteorological Data: Exercises (Part 8)

Atmospheric air pollution is one of the most important environmental concerns in many countries around the world. It is strongly affected by meteorological conditions. In this set of exercises, we will use the openair package to work and analyze air quality and meteorological data. This package provides tools to directly import data from air quality measurement […]