@nasser it's 1 dimensional nearest neighbor scaling, so I would initially call it
scale1_nearest(data, factor).
I would then generalize it to support different filters and fractional sealer, and call it
scale1(data, scaler, filter = nearest).
Still unsatisfied I would try to generalize it to N dimensions, preferably inferred from the parameters, so that I can call it simply
scale(data, scaler, filter = nearest).