Code for Resampling
the R lab
John Weatherwax