Skip to content
Prev 175290 / 398506 Next

Find inflection points using smooth.spline

T.D.Rudolph <prairie.picker <at> gmail.com> writes:
You can get an analog of first and second derivatives via using first and 
second differences:

?diff

If your spline object is spl, try:

diff(diff(spl))

It's possible that you would find lag and rle functions useful as well.