which.index: Corresponding index

View source: R/helpfulfunctions.R

which.indexR Documentation

Corresponding index

Description

Finds the indices where events best match values in a given vector.

Usage

which.index(events, record, suppress = TRUE)

Arguments

events

Vector describing the values of interest (here: either depth or age of events)

record

Vector we want to search (here: either full depth or age record)

suppress

Boolean. Set to TRUE to suppress warnings that events fall outside designated interval.

Value

Returns a vector of indices for which elements of record best matches the elements of events-

Author(s)

Eirik Myrvoll-Nilsen, eirikmn91@gmail.com

See Also

bremla


eirikmn/bremla documentation built on Jan. 25, 2025, 4:41 a.m.