Assess if the coordinates x,y of an object conforms a regular grid. This function is called by its side effects.
This function is internally called by as_spatraster()
.
Arguments
- xy
A matrix, data frame or tibble of at least two columns representing x and y coordinates.
- digits
integer to set the precision for detecting whether points are on a regular grid (a low number of digits is a low precision).
Value
invisible()
if is regular or an error message otherwise
See also
Other helpers:
compare_spatrasters()
,
is_grouped_spatvector()
,
pull_crs()