I am using sm.spline on several datasets. For one dataset I get the following error
Error in smooth.Pspline(x = ux, y = tmp[, 1], w = tmp[, 2], method = metho