Skip to contents

Find the closest number in a vector given a target number

Usage

closest_number(vector, target)

Arguments

vector

numeric

target

numeric

Value

numeric