resample_xts function

Functions to resample an xts time series