Learn R Programming

expp (version 1.2.5)

neighborsDataFrame: Convert a nb object to data.frame.

Description

Convert an object of class nb in package spdep or a list of nb objects to data.frame.

Usage

neighborsDataFrame(nb)

higherNeighborsDataFrame(nb, maxlag)

Arguments

nb

an object of class nb

maxlag

maximum lag, see nblag

Value

data.frame