nearest: nearest

View source: R/gen_helper-functions.R

nearestR Documentation

nearest

Description

A function to assign a numeric bin between a range

Usage

nearest(number, vector)

Arguments

number

the number to check

vector

a numeric vector to match values to

Examples

nearest(74.2,seq(0,100,5)) #returns 75


TheAlexBarth/EcotaxaTools documentation built on Nov. 14, 2024, 8:27 p.m.