added r notebook

resampling methods