nb2WB {spdep} | R Documentation

## Output spatial weights for WinBUGS

### Description

Output spatial weights for WinBUGS

### Usage

    nb2WB(nb)
    listw2WB(listw)

### Arguments

`nb` | an object of class `nb`
`listw` | a `listw` object from for example `nb2listw`

### Value

A list suitable for convering using `dput` for WinBUGS

### Author(s)

Virgilio Gomez-Rubio

### References

http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/geobugs12manual.pdf

### See Also

`dput`

### Examples

    example(columbus)
    x <- nb2WB(col.gal.nb)
    dput(x, control=NULL)
    x <- listw2WB(nb2listw(col.gal.nb))
    dput(x, control=NULL)

[Package spdep version 0.4-56 Index]