NA values, are filled by linear interpolation between
NA values that bound the gap.
fillGap(x, method = c("linear"), rule = 1)
an oce object.
to use; see “Details”.
integer controlling behaviour at start and end of
oce object, with gaps removed.
Eventually, this will be expanded to work
oce object. But, for now, it only works for vectors that
can be coerced to numeric.
If the first or last point is
x is returned unaltered.
linear is permitted now.
library(oce) # Integers x <- c(1:2, NA, NA, 5:6) y <- fillGap(x) print(data.frame(x,y)) # Floats x <- x + 0.1 y <- fillGap(x) print(data.frame(x,y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.