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")

Arguments

env

A stars object.

date_interpolation

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

Value

logical indicating if the two SpatRaster objects have the same

Examples

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