maskbybin

Bins data into bins from lo to high by step, returning a mask with an additional grid (the bins) that is either NaN or 1

var bin edges1 ... n maskbybin

Arguments
labeltypedescription
var variable Variable to be sorted
bin edges numbers
Returns
var' variable Mask with additional grid (the bins) that is either NaN or 1