Skip to contents

This function linearly approximates shares between time steps, so that gaps for instance between 2010 and 2020 are filled with data for 2010, 2011, 2012, etc.

Usage

interpolate_gaps(env, date_interpolation = "annual", method = "linear")

Arguments

env

A stars object.

date_interpolation

character on how missing dates between events should be interpolated. See project().

method

A character on the used method for approximation, either "linear" (Default) or "constant" through a step function.

Value

logical indicating if the two SpatRaster objects have the same

Examples

if (FALSE) { # \dontrun{
  # Interpolate stars stack
  sc <- interpolate_gaps( stack, "annual")
} # }