powered by
Fill with "cubic spline interpolation"
fill_spline(body, idx, ...)
[numeric vector]
The body of the vector.
[integer vector]
the index to replace with.
Further arguments passed to \link[stats]{spline}
\link[stats]{spline}
Returns a vector with the same class and attributes as the input vector.
# NOT RUN { x <- c(5,3,NA,2,5) fill_spline(x, 3) # }
Run the code above in your browser using DataLab