add_resample_id function

Augment a data set with resampling identifiers