neighbourclass-methods: Nearest neighbours of a certain class

Description Usage Arguments Value

Description

Filter out nearest neighbours by cell class. If cell i has no nearest neighbours of class cell.class then numeric(0) is returned.

Usage

1
2
3
4
neighbourClass(object, cell.class)

## S4 method for signature 'SPData,numeric'
neighbourClass(object, cell.class)

Arguments

object

The SPData object to use

cell.class

The cell class to filter out

Value

A list of length nCell(object) where all nearest neighbour cells other than of type cell.class have been removed.


kieranrcampbell/SpatialPRo documentation built on May 20, 2019, 9:24 a.m.