R variable step size interpolation implemented