ring_dist: Distance on ring

Description Usage Arguments Value Examples

View source: R/utils_geom.R

Description

Compute minimal distances (discrete) on a ring

Usage

1
ring_dist(i, j, N)

Arguments

i

from

j

to

N

size of the ring

Value

distance on a ring between i and j

Examples

1
ring_dist(1, 9, 10)

robertsy/assimilr documentation built on May 27, 2019, 10:33 a.m.