File: nb2WB.Rd

package info (click to toggle)
r-cran-spdep 1.1-5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,012 kB
  • sloc: ansic: 1,489; sh: 16; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\name{nb2WB}
\alias{nb2WB}
\alias{listw2WB}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Output spatial weights for WinBUGS}
\description{
  Output spatial weights for WinBUGS
}
\usage{
nb2WB(nb)
listw2WB(listw) 
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{nb}{an object of class \code{nb}}
  \item{listw}{a \code{listw} object from for example \code{nb2listw}}
}

\value{
  A list suitable for convering using \code{dput} for WinBUGS
}
\references{http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/geobugs12manual.pdf}
\author{Virgilio Gomez-Rubio}

\seealso{\code{\link[base]{dput}}}
\examples{
col.gal.nb <- read.gal(system.file("weights/columbus.gal", package="spData")[1])
x <- nb2WB(col.gal.nb)
dput(x, control=NULL)
x <- listw2WB(nb2listw(col.gal.nb))
dput(x, control=NULL)
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{spatial}