I have a matrix with two column and want to (elevation and snow depth) and want to use elevation column to make bins (letès say for every 11.5 meter) and average the snowdepth data based on that. a part of My datalooks like attached.
Finally I would have a matrix with two clumns, is elevation bins and the other is average snow depth in that range. Please pay attention that the value are not integer and some funcitons that has previously being suggested cannot handle non-integer values. Any idea would be greatly appreciated.