Data Smoothing Techniques In R