Tools for resampling data in Julia