powered by
This tween fills out NA elements (or NULL elements if data is a list) by interpolating between the prior and next non-missing values.
NA
NULL
data
tween_fill(data, ease)
If data is a data.frame then a data.frame with the same columns. If data is a vector then a vector.
A data.frame or vector.
A character vector giving valid easing functions. Recycled to match the ncol of data
# Single vector tween_fill(c(1, NA, NA, NA, NA, NA, 2, 6, NA, NA, NA, -2), 'cubic-in-out') # Data frame tween_fill(mtcars[c(1, NA, NA, NA, NA, 4, NA, NA, NA, 10), ], 'cubic-in')
Run the code above in your browser using DataLab