fill_spline: Fill with "cubic spline interpolation"

Description Usage Arguments Value Examples

View source: R/fill.R

Description

Fill with "cubic spline interpolation"

Usage

1

Arguments

body

[numeric vector]

The body of the vector.

idx

[integer vector]

the index to replace with.

...

Further arguments passed to \link[stats]{spline}

Value

Returns a vector with the same class and attributes as the input vector.

Examples

1
2
x <- c(5,3,NA,2,5)
fill_spline(x, 3)

transx documentation built on Nov. 27, 2020, 5:08 p.m.