Return the order of a spline object.

splineOrder(object)

An object that inherits from class "spline".

"spline"

A positive integer.

The order of a spline is the number of coefficients in each piece of the piecewise polynomial representation. Thus a cubic spline has order 4.

splineKnots, interpSpline, periodicSpline

splineKnots

interpSpline

periodicSpline

# NOT RUN { splineOrder( interpSpline( weight ~ height, women ) ) # }

Run the code above in your browser using DataCamp Workspace