terra-migration function

Get min or maximum value of a (Spat)Raster