by_scale function

Scale a dataframe or matrix