grid_distance {jpgrid} | R Documentation |
Distance between grid square codes
Description
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")
)
Arguments
grid |
A |
grid_to |
A |
close |
Should the path of each element be closed when |
type |
How is the NA grid treated when |
Value
A double vector.
[Package jpgrid version 0.4.0 Index]