nearestV: Nearest Value

Description Usage Arguments Value Examples

View source: R/nearestV.R

Description

Function to find the nearest value from within a set of values

Usage

1
nearestV(value, values)

Arguments

value

The value to be matched

values

The set of values with which the value is being compared

Value

The nearest value

Examples

1
2
a <- runif()
nearestV(50, a)

mathesong/granviller documentation built on April 20, 2020, 7:28 p.m.