Changed default value of replace argument in resample function