As we’re aware, the growth of data science has been increased recently, and successfully applied on research for decision making or creating baseline conditions. Statistical analysis, including data visualization, exploration, and modeling are three main important elements in data science. In this exercise, we’ll learn how to analyze response and explanatory variables of data that […]

## Groups Comparison with ANOVA: Solutions (Part 1)

Below are the solutions to these exercises on “Two Way ANOVA’s.” if (!require(car)){install.packages(car, dep=T)} ## Warning: package ‘car’ was built under R version 3.3.2 library(car) if (!require(ggplot2)){install.packages(ggplot2, dep=T)} ## Warning: package ‘ggplot2’ was built under R version 3.3.3 library(ggplot2) if (!require(dplyr)){install.packages(dplyr, dep=T)} ## Warning: package ‘dplyr’ was built under R version 3.3.3 library(dplyr) if (!require(lattice)){install.packages(lattice, […]

## Re-sampling Time Series Dataset in Hydrology: Exercises

Robust data is a key for robust result in hydrological analysis. Problems that often happen with time series data analysis are missing value and different time scale measurement. Those two problems can be solved by doing spatial/temporal interpolation and or/ spatial modelling. In this exercise, we will discuss how to resample time series dataset with […]

## Resampling Time Series Datasets in Hydrology Solutions

Below are the solutions to these exercises on Resampling Dataset in Hydrology. if (!require(lubridate)){install.packages(lubridate, dep=T)} ## Warning: package ‘lubridate’ was built under R version 3.3.3 library(lubridate) if (!require(imputeTS)){install.packages(imputeTS, dep=T)} ## Warning: package ‘imputeTS’ was built under R version 3.3.3 library(imputeTS) library(hydroGOF) ## Warning: package ‘hydroGOF’ was built under R version 3.3.3 ## Warning: package ‘zoo’ […]

## Half Hourly Hydrology Dataset Analysis and Visualization: Solutions

Below are the solutions to these exercises on Hydrology Dataset Analysis and Visualization. if (!require(lubridate)){install.packages(lubridate, dep=T)} ## Warning: package ‘lubridate’ was built under R version 3.3.2 library(lubridate) ############### # # # Exercise 1 # # # ############### hirnant<-read.csv(file.choose(),header=TRUE) hirnant<-hirnant[,-c(4,5)] hirnant<-hirnant[-c(2929,2930),] ############### # # # Exercise 2 # # # ############### hirnant$Time<-strptime(hirnant$Time, format = “%d/%m/%Y %H:%M”, […]

## Half Hourly Hydrology Dataset Analysis and Visualization: Exercises

This exercise is an extension from the other two exercises. We will focus on how to manage unique data sets from logger, in which record the hydro-logical data with specific time intervals required. The data set used is taken from half-hourly flow and rainfall records of the River Hirnant, Wales-UK from November to December 1972 […]

## Basic Time-Series Hydro-logical Data Analysis: Solutions (Part 2)

Below are the solutions to these exercises on Basic Hydrological Data Analysis. if (!require(hydroTSM)){install.packages(hydroTSM, dep=T)} ## Warning: package ‘hydroTSM’ was built under R version 3.3.3 ## Warning: package ‘zoo’ was built under R version 3.3.3 ## Warning: package ‘xts’ was built under R version 3.3.3 library(hydroTSM) if (!require(EcoHydRology)){install.packages(EcoHydRology, dep=T)} ## Warning: package ‘EcoHydRology’ was built […]

## Basic Time-Series Hydro-logical Data Analysis: Exercises (Part 2)

This exercise is the last series of basic analysis of hydrological data. We will use a precipitation dataset from the previous exercise here and additional flow data at Saugeen here. At this time, we will explore seasonal analysis and visualization, including creating a hydrograph and a hydrograph with baseflow and additional plot and flow duration […]

## Basic Time-Series Hydro-logical Data Analysis : Solutions (Part1)

Below are the solutions to these exercises on Basic Hydrological Data Analysis (Part 1). if (!require(hydroTSM)){install.packages(hydroTSM, dep=T)} ## Warning: package ‘hydroTSM’ was built under R version 3.3.3 ## Warning: package ‘zoo’ was built under R version 3.3.3 ## Warning: package ‘xts’ was built under R version 3.3.3 library(hydroTSM) ############### # # # Exercise 1 # […]

## Basic Time-Series Hydro-logical Data Analysis:Exercises (Part 1)

Time series dataset is a well-recognized data type for modeling and forecasting purposes. However, the application in R may vary depending on the research areas. In this exercise set, we will explore basic analysis for time series hydrological data in R . We will also introduce the hydroTSM package; a useful package in hydrology. Hydro TSM is […]