first_over: Get first close matching value in a generally increasing...

Description Usage Arguments Details Value

View source: R/internal_fns.R

Description

first_over - takes a single value and finds the index of first occurrence or first time that value is exceeded in a vector.

Usage

1
first_over(this, there)

Arguments

this

numeric. Single value to find first occurence of.

there

numeric. The vector in which to find value.

Details

Finds the index (i.e. position) of the first occurrence or first time a value is exceeded in a vector.

Value

Index vector of where the value occurs or is exceeded in the target vector.


nicholascarey/attackR documentation built on July 22, 2020, 11:41 p.m.