OptionalfFor "constant": the step value is (1 - f) y_left + f y_right, with f in [0, 1] (else an error, as in R). Default 0.
Optionalmethod"linear" (default) or "constant" (step function). A unique prefix is accepted and anything else is an
error, as in R.
OptionalnNumber of points when xout is not given. Default 50.
OptionalruleExtrapolation rule (1: NaN, 2: the end value), for both sides or [left, right]. Default 1. Any other value is
an error (R takes every value other than 1 as 2).
OptionaltiesHow to merge equal x values. Default "mean".
OptionalxoutPoints to interpolate at. Default: n equally spaced points over the range of x.
OptionalyleftValue left of the data. Default: NaN (rule 1) or the first y (rule 2).
OptionalyrightValue right of the data. Default: NaN (rule 1) or the last y (rule 2).
Options for approx.