Rdocumentation
powered by
Learn R Programming
SciencesPo (version 1.02.12)
nearest.loc: Find Location of the Nearest Value
Description
Find the location of the nearest value to a number that you specify.
Usage
nearest.loc(x, value)
Arguments
x
A vector.
value
The value that you want to find.
encoding
UTF-8