R/vaster.R
snap_extent.Rd
Whole grain buffers.
snap_extent(x, res) buffer_extent(x, res)
extent (xmin, xmax, ymin, ymax)
resolution (a grain to align to)
extent, snapped to the resolution
snap_extent(sort(rnorm(4)), 0.01) #> [1] -2.44 -1.40 -0.01 0.26