I agree, the documentation gives the impression that stats::spline would allow "monoH.FC".
My guess is that stats::spline doesn't allow it because the function is designed to return a list with x and y components. This doesn't suit monotonic cubic Hermite splines because the function would also need to return the slopes. Furthermore, additional functions may (or may not) be required depending on what you want to do with x, y and slope vectors. Note that my package kubik, provides a range of functions for working with cubic Hermite splines. On Fri, May 1, 2020 at 4:39 AM Samuel Granjeaud IR/Inserm <samuel.granje...@inserm.fr> wrote: > > Hi, > > I have just noticed that the argument method of the spline function of > the stats package does not allow to specify monoH.FC although the > documentation tells it should be possible. > > I know how to program a workaround. This post intends to alert the > maintainers. > > Stay safe, > Samuel > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.