runRPS: Run Rock-Paper-Scissor Simulation

Description Usage Arguments Value

View source: R/runRPS.R

Description

Run RPS simulation over a set amount of iterations over a raster

Usage

1
2
3
4
5
6
7
8
runRPS(
  nrow = 100,
  ncol = 100,
  nclr = 3,
  iterations = 100,
  directions = 8,
  threshold = 3
)

Arguments

nrow

number of rows in raster

ncol

number of columns in raster

nclr

number of colors used in simulation

iterations

number of iterations for simulation

directions

either 4, 8, 16, or 'bishop' to define adjacent/neighbors

threshold

number of agreeing neighbors necessary to change cell

Value

a list of rasters representing each iteration of simulation


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