pipe: Pipe hyetographs

Description Arguments Examples

Description

Like dplyr, erosivity also uses the pipe function, %>% to turn function composition into a series of imperative statements.

Arguments

lhs, rhs

A hyetograph and a function to apply to it

Examples

1
2
3
4
5
6
7
8
# Instead of

data("prec5min")
hyet_clear <-  hyet_remove_rep(prec5min)
hyet_fill <- hyet_fill(hyet_clear, time_step = 5)

# you can write
prec5min %>% hyet_remove_rep() %>% hyet_fill(time_step = 5)

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