[R-sig-Geo] How to convert nb - neighbourhood object in matrix object

Roger Bivand Roger.Bivand at nhh.no
Mon Aug 13 14:09:38 CEST 2012


On Mon, 13 Aug 2012, Everton Emanuel wrote:

> Dear all,
>
> I have a 'nb' neighbourhood class object and I want to convert it in a matrix
> object. I have searched for functions in the spdep library,
> without success. Does anyone know an easy way to do that?

?nb2mat perhaps?

>
> Thanks in advance,
> Everton.
>
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list