Author: Alonso Arriagadada M. alonso.arriagada@usach.cl
Date: 2026-05-08

# DeductiveR

#### Alonso Arriagadada M. alonso.arriagada@usach.cl

#### 2026-05-08

DeductiveR is an R package for fill in missing data of flow or precipitation monthly time series using the Deductive Rational Method, proposed by Campos (Campos, D. F., Procesos del ciclo hidrologico, Universidad Autonoma de San Luis Potosi, 1992, Mexico).

## Requirements

Dependencies: dplyr, tidyr, ggplot2, moments, ggpubr, lmomco

## Installation

You can install the development version of DeductiveR from GitHub with:

    # install.packages("remotes")
    remotes::install_github("Alobondo/DeductiveR")
    library(DeductiveR)

## Usage

Functions | Description
--- | ---
`DR()` | Apply the Deductive Rational Method to a monthly series of flow or precipitation data to fill in missing data.
`DR_plot()` | Plot the result from the application of the Deductive Rational Method.
`DR_stats()` | Statistics for the result from the application of the Deductive Rational Method.
`DR_boxplot()` | Monthly boxplot considering result from the application of the Deductive Rational Method.
`DR_SVC()` | Seasonal Variation Curves considering results from the application of the Deductive Rational Method.
`DR_timeseries_plot()` | Plot raw and infilled monthly time series.

`DR()` works with a dataframe with columns: date - year - month - day - station number (type date the first column and numeric the rest). This follows the same format as CAMELS-CL (`https://camels.cr2.cl/`) monthly flow file.