changed arguments for na.approx.swmpr