Is there an equivalent function in R to the matlab function histc? Vector and bins are numeric.
[ countInBin, binIndexOfVectorElement ] = histc( vector, bins )
where:
bins = min(vector) : increment : max( vector )
and
length( binIndexOfVectorElement ) = length( vector )