File: geo2neighbor.Rd

package info (click to toggle)
r-cran-prabclus 2.3-2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,392 kB
  • sloc: sh: 13; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
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
\name{geo2neighbor}
\alias{geo2neighbor}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{Neighborhood list from geographical distance}
\description{
  Generates a neighborhood list as required by \code{prabinit} from a
  matrix of geographical distances.
}
\usage{
geo2neighbor(geodist,cut=0.1*max(geodist))
}
%- maybe also `usage' for other objects documented here.
\arguments{
  \item{geodist}{\code{dist}-object or symmetric non-negative matrix.
    Geographical distances between regions.}
  \item{cut}{non-negative numerical. All pairs of regions with
    \code{distance<=cut} are treated as neighbors.}
}
\value{
  A list of integer vectors, giving the set of neighbors for every region.
}

\author{Christian Hennig
  \email{christian.hennig@unibo.it}
  \url{https://www.unibo.it/sitoweb/christian.hennig/en}}

\examples{
data(waterdist)
geo2neighbor(waterdist)
}
\keyword{cluster}% at least one, from doc/KEYWORDS
\keyword{spatial}% __ONLY ONE__ keyword per line