rect_adj: Produce an RW1 adjacency matrix for a rectangular grid for...

Description Usage Arguments Value Author(s)

Description

Produce an RW1 adjacency matrix for a rectangular grid for use with areal spatial models (queens move)

Usage

1
rect_adj(x, y, byrow = FALSE)

Arguments

x

number of cells on horizontal side of grid

y

number of cells on vertical side of grid

byrow

If TRUE, cell indices are filled along rows (default is FALSE)

Value

adjacency matrix

Author(s)

Paul Conn paul.conn@noaa.gov


atredennick/sageAbundance documentation built on May 10, 2019, 2:11 p.m.