"spatial.neighbor"
spatial.neighbor
.
spatial.subset(neighbor, region.id, data=NULL, subset=NULL, reorder=F, parameters=NULL, weights=NULL)
"spatial.neighbor"
.
row.id
and
col.id
variables in the object neighbor are obtained from this vector of
identifiers. The order of values in vector
region.id
must be
identical to the order of values in any data frames containing
information on the spatial lattice, where each row in the data frame
corresponds to a single spatial region.
region.id
.
region.id
.
TRUE
, the variables
row.id
,
col.id
, and
matrix
in the neighbor
object are recoded to be sequential integer values.
matrix
of
neighbor
.
region.id
.
neighbor
,
data
,
parameters
, and
weights
.
This routine is used to obtain subsets of objects of class
"spatial.neighbor"
, primarily for use with the spatial regression
routines.
spatial.subset(sids.neighbor, region.id=sids$id, data=sids, subset=-4)