Description Usage Arguments Value Examples
Distances between hexagonal bins
1 2 3 4 5 | dist_areas_f(
U,
delta = (range(U$x)[2] - range(U$x)[1])/100,
h = neighbourhoods(U, delta)
)
|
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 |
a named matrix
1 2 3 | data(U)
dist_areas_f(U)[1:3,1:3]
dist_areas_f(U,0.03)[1:3,1:3]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.