count.landscape: Count neighbors.

Description Usage Arguments Value

View source: R/count.R

Description

Count neighbors.

Usage

1
2
## S3 method for class 'landscape'
count(x, neighbor)

Arguments

x

A landscape object.

neighbor

A character value. The state to count.

Value

Returns a vector of the counts in the neighborhood specified by the mapping, by default the 4-cell neighborhood.


caspr documentation built on May 2, 2019, 5:25 p.m.