hyet_create: Create a hyetograph

Description Usage Arguments Details Value Examples

View source: R/hyet_create.R

Description

hyet_create uses precipitation and date values to create a tibble that represents the distribution of rainfall over time. Returns an error if:

Usage

1

Arguments

date

a numeric vector of precipitation values

prec

a POSIXct vector with date values

Details

This function checks the validity of precipitation and date values and returns an error if:

Value

a tibble with the variables date and prec

Examples

1
2
3
4
5
6
7
8
9
# create date and precipitation values
date <- seq(from = as.POSIXct(0, origin = "2018-01-01"),
                  length.out =  100,
                  by = "mins")
set.seed(1)
prec <-round(runif(100,0,10),1)

# create hyetograph
hyet <- hyet_create(date, prec)

kvantas/erosivity documentation built on July 25, 2018, 9:32 p.m.