dot-whichValueGreaterEqual: Search for First Element in an Integer Vector Larger than...

Description Usage Arguments Details Value

Description

For performance reasons call a C++ function that loops across the vector. Original name: .whichValueGreaterEqual

Usage

1

Arguments

x

Increasingly sorted numeric vector to search.

thr

Integer scalar: searched element will need to be greater than or equal to this argument

iStart

Index in vector to start search

Details

Searches a sorted integer vector for the next element that is >= a threshold in fast C-code.

Value

A scalar integer: first index in x, that is >= start, and whose value x[i] is >= threshold. If no index was found, returns NA.


grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.