Description Usage Arguments Value
View source: R/neighborhoods.R
Retrieves all immediate hexagonal neighbors.
1 | get_hex_neighborhoods(centers, contrasts = c(1, 1, 1, 0, -1, -1, -1))
|
centers |
A dataframe indicating the index locations of the neighborhood centers |
contrasts |
A vector of contrasts to attach to each neighborhood |
A dataframe with columns r_n
, c_n
and contr
corresponding to
the neighbor row position, column position and contrast value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.