const_trim: Trims leading values in numerical vector

Description Usage Arguments Value Examples

View source: R/const_trim.R

Description

Removes the first elements of a numerical vector till they do show an increase higher than threshold.

Usage

1
const_trim(v, threshold)

Arguments

v

a numerical vector

threshold

the threshold used for cutting the vector

Value

the first index of the vector which entry grows more than threshold, starting from 1 to length(v)

Examples

1
2
3
4
## Not run: 
	const_trim(c(0,0,0,1,1.3,1.7,2,3,4.5,6,9,12),1)

## End(Not run)

Andreaierardi/disCOVIDer19 documentation built on Nov. 3, 2020, 2:24 a.m.