Find position of value in set

findPosition(value = 0, set = c(0, 1))

Arguments

value

Value to locate

set

Set of values in which to locate value

Details

Find best position of value in set by finding closest value; modification of FindInterval() function