calc_sequential_difference: Calculate the difference between sequential rows while...

Description Usage Arguments Details Value

View source: R/tools.R

Description

Returns the data set with following columns added:

Usage

1
2
calc_sequential_difference(data, values, arrange, ...,
  rel_diff_signif = 0.2, rise_above = 0, fall_below = 0)

Arguments

data

A tibble.

values

The column with the values to calculate the difference with.

arrange

The column to arrange the data by.

...

The columns to group by.

rel_diff_signif

A relative difference above this cut-off is considered significant.

rise_above

A rise above this cut-off is required before it is considered significant.

fall_below

A fall below this cut-off is required before it is considered significant.

Details

Value

A tibble.


randomchars42/eenv documentation built on May 20, 2019, 1:29 p.m.