get_hex_neighborhoods: Retrieves all immediate hexagonal neighbors.

Description Usage Arguments Value

View source: R/neighborhoods.R

Description

Retrieves all immediate hexagonal neighbors.

Usage

1
get_hex_neighborhoods(centers, contrasts = c(1, 1, 1, 0, -1, -1, -1))

Arguments

centers

A dataframe indicating the index locations of the neighborhood centers

contrasts

A vector of contrasts to attach to each neighborhood

Value

A dataframe with columns r_n, c_n and contr corresponding to the neighbor row position, column position and contrast value


brycefrank/spsys documentation built on Aug. 1, 2020, 12:21 a.m.