In addition to statistical packages, R has powerful libraries useful for Numerical Analysis. R has a package cmna for computational numerical analysis. Finding zeros of a function and matrix operations are two key topics in Numerical Analysis. In this blog we will do exercises in three topics: finding zeros of a function, solving linear system […]

## Graphics With Lattice: Part 2: Exercises

We will continue working with Lattice and see some more things that are possible to do with lattice. The answers to these exercises are available here. You can also check the previous before diving into it. Exercise 1 Create a Box whisker plot from the diamonds data-set, where I want to see the price’s distribution (ex. […]

## How to Use Environmental Data With Ropenaq

INTRODUCTION This R package is aimed at accessing the openaq API. OpenAQ is a community of scientists, software developers, and lovers of open environmental data who are building an open, real-time database that provides programmatic and historical access to air quality data. The package contains 5 functions that correspond to the 5 different types of […]

## Regular expressions fundamentals – Exercises

Regular expressions is one of the skills you need to drill and drill until they become second nature. You never know when you will need them, just that you WILL need them. In this exercise set, we will go through some of the fundamentals relying on base R only. If you are already an expert, […]

## Tensorflow – Linear Regression: Exercises

In this set of exercises, we will go through the basics of Regression Analysis Using [Tensorflow](https://www.tensorflow.org/). By the end of this post, you will be able to perform regression analysis with linearly separable data. It is recommended to check out the (tutorial)[Click here] before starting the exercises. We will use the ‘mtcars’ built-in data-set. Before […]

## Tidy Model Results: Exercises

Common problems with complex modeling analysis with R is that model results are often complex objects and getting to values, like model coefficients, demand a lot of manipulations; others vary from one model to another. Fortunately, the broom package provides nice and easy to use solutions to the problem. Answers to the exercises are available here. […]

## PDF tables with kableExtra and RMarkdown – exercises

INTRODUCTION The goal of this tutorial is to introduce you to kableExtra, which you can use to build common complex tables and manipulate table styles. It imports the pipe %>% symbol from magrittr and verbalizes all the functions in order to permit you to add “layers” to the kable output. In combination with R Markdown, […]

## Bayesian Inference – MCMC Diagnostics using coda : Exercises

This post presents the main convergence diagnostics of Markov chains for Bayesian inference. We have seen a first introduction of Bayesian inference with Markov Chain Monte Carlo (MCMC) techniques in previous posts (here and here). Exercises related to the two main MCMC algorithms used to do Bayesian inference have been presented : Gibbs sampler and […]

## Groups Comparison With ANOVA: Exercises (Part 2)

On this 2nd part of groups comparison exercise, we will focus on nested ANOVA application in R, particularly the application on ecology. This is the last part of groups comparison exercise.Previous exercise can be found here Answers to the exercises are available here. If you obtained a different (correct) answer than those listed on the […]

## Tidy Date/Times: Exercises

Manipulating dates and times is usually quite hard and confusing. When time zones come in, it gets even harder; but still, sometime one needs to process date-time objects in their code. Lubridate is one of a few great packages which makes things a bit easier. Answers to the exercises are available here. Please, do all […]