fill_spline {transx} | R Documentation |
Fill with "cubic spline interpolation"
fill_spline(body, idx, ...)
body |
The body of the vector. |
idx |
the index to replace with. |
... |
Further arguments passed to |
Returns a vector with the same class and attributes as the input vector.
x <- c(5,3,NA,2,5)
fill_spline(x, 3)