Convert a vector of real numbers to a vector of integer bin numbers
according to the specified lookup vector.
Usage
VectorToBin(v, lookup, clamp=TRUE)
Arguments
v
input vector
lookup
lookup vector
clamp
clamp values to lookup range
Value
The return value is a vector containing the bin numbers for the elements of the input vector.
Details
This function transforms a vector of arbitrary values into a vector of bin numbers corresponding to the data in the input vector. Bin numbers are found using the specified lookup table (see GetBinNumber).