dist_areas_f: Distances between hexagonal bins

Description Usage Arguments Value Examples

View source: R/Distances.R

Description

Distances between hexagonal bins

Usage

1
2
3
4
5
dist_areas_f(
  U,
  delta = (range(U$x)[2] - range(U$x)[1])/100,
  h = neighbourhoods(U, delta)
)

Arguments

U

: a dataframe containing the numerical variables x and y and preferable hexagon

delta

: needed if hexagon is not a variable of U: bins will be recomputed

Value

a named matrix

Examples

1
2
3
data(U) 
dist_areas_f(U)[1:3,1:3]
dist_areas_f(U,0.03)[1:3,1:3]

DanielBonnery/Strategy documentation built on Dec. 17, 2021, 4:03 p.m.