

The first component of a listw object is an nb object, a list of n integer vectors, with at least a character vector region.id attribute with n unique values (like the row.names of a ame object) n is the number of spatial entities. Since the spdep package was created, spatial weights objects have been constructed as lists with three components and a few attributes, in old-style class listw objects.

Nb and listw objects (copied from the nb_igraph vignette) Sf_bna2 <- merge(sf_bna1, nydata, by="AREAKEY") Sf_bna <- st_read("t8_36.bna", stringsAsFactors=FALSE)


GDAL must be built with GEOS enabled to make geometry test work.): library(sf) It determines what is a hole or a lake only from geometrical analysis (inclusion, non-intersection tests) and ignores completely the notion of polygon winding (whether the polygon edges are described clockwise or counter-clockwise). Here we will use a GPKG file created as follows (rgdal could also be used with the same output GDAL here is built with GEOS, so the BNA vector driver will use geometry tests: The BNA driver supports reading of polygons with holes or lakes. What was found in mid-2007 was that included villages were in/excluded by in-out umbilical cords to the boundary of the enclosing tract, when the underlying BNA file was first converted to MapInfo (holes could not exist then). The version of the New York 8 counties geometries used in ASDAR and included as a shapefile in spdep was converted from the original BNA file using an external utility program to convert to MapInfo format and converted on from there using GDAL 1.4.1 (the OGR BNA driver was not then available it entered OGR at 1.5.0, release at the end of 2007), and contains invalid geometries. The object listw_NY is directly imported from nyadjwts.dbf on the Waller & Gotway (2004) chapter 9 website. Further, the zipfile is now at a new location requiring login. 9 of the data import process is described in the help file of NY_data in spData geometries downloaded from the CIESIN server at, file /pub/census/usa/tiger/ny/bna_st/t8_36.zip, and extensively edited a zip archive NY_data.zip of shapefiles and a GAL format neighbours list is on the book website. The description of the input geometries from ADSAR is: New York leukemia: used and documented extensively in Waller and Gotway (2004) and with data formerly made available in Chap. We’ll use the whole NY 8 county set of boundaries, as they challenge the implementations more than just the Syracuse subset.
