Fill missing values in an array

fill(x, ...)

# Default S3 method
fill(x, method = "akima", control = list(), ...)

# S3 method for class 'array'
fill(x, method = "akima", control = list(), ...)

# S3 method for class 'grid'
fill(x, method = "akima", control = list(), ...)

# S3 method for class 'gts'
fill(x, method = "akima", control = list(), ...)

Arguments

x

A matrix or a supported array (e.g. a gts::gts object).

...

Additional arguments, currently ignored.

method

The interpolation method used, currently only 'akima' available.

control

Additional control argument passed to the interpolation method.

Value

The array without missing values.