If grid
and grid_to
are both vectors, the distance between
grid
and grid_to
is calculated.
If grid
is a list, The path distance of each element is calculated.
Usage
grid_distance(
grid,
grid_to = NULL,
close = FALSE,
type = c("keep_na", "ignore_na", "skip_na")
)