bin.vector:
Bin a continuous vector into discrete values.
Description
This function bins a vector with continuous values into discrete values by assigning each continuous value to its neares discrete value.
Usage
bin.vector(vectorX, bins = seq(0,1,0.5))
Arguments
vectorX
The vector to be binned
bins
The discrete values into which vectorX should be binned.
Value
Returns a binned vector with only the discrete values specified by bins.