Make generate extents for gaps used in hold-out samples for model cross-validation.

makeGapExtents(studyarea = ext(c(-123, -118, 49, 52)), ngaps = 5L)

Arguments

studyarea

SpatExtent of study area where gaps should be generated. Defaults to an area in Southern BC.

ngaps

integer. Number of gaps wanted..

Value

a list of extents of length ngaps.