Learn R Programming

enerscape (version 1.1.0)

neighbours: Neighbours

Description

Neighbours

Usage

neighbours(i, j, n, x)

Value

Vector with values the neighours of x

Arguments

i

row index

j

column index

n

number of neighbours (4 or 8)

x

matrix with values