mesh_distance: Distance between regional meshes

Description Usage Arguments Value

View source: R/distance.R

Description

If mesh and mesh_to are both vectors, the distance between mesh and mesh_to is calculated. If mesh is a list, The path distance of each element is calculated.

Usage

1
mesh_distance(mesh, mesh_to, close = FALSE, type = "keep_na")

Arguments

mesh

A mesh vector or a list of mesh vector.

mesh_to

A mesh vector.

close

Should the path of each element be closed when mesh is a list?

type

How is the NA mesh treated when mesh is a list? "skip_na" skips the NA mesh and connects the paths. "keep_na" by default.

Value

A double vector.


japanmesh documentation built on Dec. 11, 2021, 9:36 a.m.