Learn R Programming

SciencesPo (version 1.3.7)

nearestPosition: Find Location of the Nearest Value

Description

Find the location of the nearest value to a number that you specify.

Usage

nearestPosition(x, value)

Arguments

x
A vector.
value
The value that you want to find.

encoding

UTF-8