Learn R Programming

SciencesPo (version 1.02.12)

nearest: Find the Nearest Value

Description

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

Usage

nearest(x, value)

Arguments

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

encoding

UTF-8