closest: Get closest matching value

Description Usage Arguments Details Value See Also

View source: R/internal_fns.R

Description

closest - takes a numeric vector or single value and finds the index of closest matching value(s) in a different vector.

Usage

1
closest(this, there)

Arguments

this

numeric. Vector or value. The value(s) to match.

there

numeric. The vector in which to find closest matching value(s).

Details

Finds the index (i.e. position(s)) of the closest matching value(s) of the input(s) in a vector

Value

Index of where closest matching value(s) occur in the target vector.

See Also

closest


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