getNeigh: Check for threshold

Description Usage Arguments Value

View source: R/getNeigh.R

Description

Function to see if enough neighbors create a threshold

Usage

1
getNeigh(g, threshold = 3)

Arguments

g

result from getAdjTable

threshold

number of neighbors necessary to change cell's color

Value

a vector of integers representing colors of which most neighbors agree 0 represents no neighborhood agreement.


beemyfriend/RPSimulator documentation built on March 9, 2020, 12:13 a.m.