diff --git a/R/elect80.R b/R/elect80.R index 5330269..95d5953 100644 --- a/R/elect80.R +++ b/R/elect80.R @@ -16,7 +16,7 @@ #' \item{pc_income: Income per capita of population over age 19 eligible to vote} #' } #' -#' @source Pace, R. Kelley and Ronald Barry. 1997. "Quick Computation of Spatial Autoregressive Estimators", in Geographical Analysis; sourced from the data folder in the Spatial Econometrics Toolbox for Matlab, \url{http://www.spatial-econometrics.com/html/jplv7.zip}, files \code{elect.dat} and \code{elect.ford} (with the final line dropped). +#' @source Pace, R. Kelley and Ronald Barry. 1997. "Quick Computation of Spatial Autoregressive Estimators", in Geographical Analysis; sourced from the data folder in the Spatial Econometrics Toolbox for Matlab, formerly available from http://www.spatial-econometrics.com/html/jplv7.zip, files \code{elect.dat} and \code{elect.ford} (with the final line dropped). #' @docType data #' @keywords datasets sp #' @importClassesFrom sp SpatialPointsDataFrame diff --git a/R/house.R b/R/house.R index 606f1d7..5412449 100644 --- a/R/house.R +++ b/R/house.R @@ -33,7 +33,7 @@ #' } #' Its projection is \code{CRS(+init=epsg:2834)}, the Ohio North State Plane. #' -#' @source Dataset included in the Spatial Econometrics toolbox for Matlab, \url{http://www.spatial-econometrics.com/html/jplv7.zip}. +#' @source Dataset included in the Spatial Econometrics toolbox for Matlab, formerly available from http://www.spatial-econometrics.com/html/jplv7.zip. #' @docType data #' @keywords datasets sp #' @importClassesFrom sp SpatialPointsDataFrame diff --git a/R/nydata.R b/R/nydata.R index 33e9ca1..d8e0097 100644 --- a/R/nydata.R +++ b/R/nydata.R @@ -18,9 +18,14 @@ #' \item{Z: ransformed propoprtions} #' \item{AVGIDIST: average distance between centroid and TCE sites} #' \item{PEXPOSURE: "exposure potential": inverse distance between each census tract centroid and the nearest TCE site, IDIST, transformed via log(100*IDIST)} +#' \item{Cases: as TRACTCAS with more digits} +#' \item{Xm: X in metres} +#' \item{Ym: Y in metres} +#' \item{Xshift: feature offset} +#' \item{Yshift: feature offset} #' } #' -#' @details The examples section shows how the DBF files from the book website for Chapter 9 were converted into the \code{nydata} data frame and the \code{listw_NY} spatial weights list. The \code{shapes} directory includes the original version of the UTM18 census tract boundaries imported from BNA format (http://sedac.ciesin.columbia.edu/ftpsite/pub/census/usa/tiger/ny/bna_st/t8_36.zip) before the OGR/GDAL BNA driver was available. The \code{NY8_utm18} shapefile was constructed using a bna2mif converter and converted to shapefile format after adding data using \code{writeOGR}. The new file \code{NY8_bna_utm18.gpkg} has been constructed from the original BNA file, but read using the OGR BNA driver with GEOS support. The NY8 shapefile includes invalid polygons, but because the OGR BNA driver may have GEOS support (used here), the tract polygon objects are valid. +#' @details The examples section shows how the DBF files from the book website for Chapter 9 were converted into the \code{nydata} data frame and the \code{listw_NY} spatial weights list. The \code{shapes} directory includes the original version of the UTM18 census tract boundaries imported from BNA format (http://sedac.ciesin.columbia.edu/ftpsite/pub/census/usa/tiger/ny/bna_st/t8_36.zip) before the OGR/GDAL BNA driver was available. The \code{NY8_utm18} shapefile was constructed using a bna2mif converter and converted to shapefile format after adding data using \code{writeOGR}. The new file \code{NY8_bna_utm18.gpkg} has been constructed from the original BNA file, but read using the OGR BNA driver with GEOS support. The NY8 shapefile and GeoPackage NY8_utm18.gpkg include invalid polygons, but because the OGR BNA driver may have GEOS support (used here), the tract polygon objects in NY8_bna_utm18.gpkg are valid. #' #' @source http://www.sph.emory.edu/~lwaller/ch9index.htm #' @references Waller, L. and C. Gotway (2004) \emph{Applied Spatial Statistics for Public Health Data}. New York: John Wiley and Sons. diff --git a/inst/shapes/NY8_utm18.gpkg b/inst/shapes/NY8_utm18.gpkg index cca26b1..515593e 100644 Binary files a/inst/shapes/NY8_utm18.gpkg and b/inst/shapes/NY8_utm18.gpkg differ diff --git a/man/elect80.Rd b/man/elect80.Rd index c29e98d..dba0df9 100644 --- a/man/elect80.Rd +++ b/man/elect80.Rd @@ -21,7 +21,7 @@ A SpatialPointsDataFrame with 3107 observations on the following 7 variables. } } \source{ -Pace, R. Kelley and Ronald Barry. 1997. "Quick Computation of Spatial Autoregressive Estimators", in Geographical Analysis; sourced from the data folder in the Spatial Econometrics Toolbox for Matlab, \url{http://www.spatial-econometrics.com/html/jplv7.zip}, files \code{elect.dat} and \code{elect.ford} (with the final line dropped). +Pace, R. Kelley and Ronald Barry. 1997. "Quick Computation of Spatial Autoregressive Estimators", in Geographical Analysis; sourced from the data folder in the Spatial Econometrics Toolbox for Matlab, formerly available from http://www.spatial-econometrics.com/html/jplv7.zip, files \code{elect.dat} and \code{elect.ford} (with the final line dropped). } \usage{ elect80 diff --git a/man/house.Rd b/man/house.Rd index 7c452f2..9acb645 100644 --- a/man/house.Rd +++ b/man/house.Rd @@ -37,7 +37,7 @@ Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots. The data slot Its projection is \code{CRS(+init=epsg:2834)}, the Ohio North State Plane. } \source{ -Dataset included in the Spatial Econometrics toolbox for Matlab, \url{http://www.spatial-econometrics.com/html/jplv7.zip}. +Dataset included in the Spatial Econometrics toolbox for Matlab, formerly available from http://www.spatial-econometrics.com/html/jplv7.zip. } \usage{ house diff --git a/man/nydata.Rd b/man/nydata.Rd index 77f359f..7a3dd6b 100644 --- a/man/nydata.Rd +++ b/man/nydata.Rd @@ -21,6 +21,11 @@ A data frame with 281 observations on the following 12 variables, and the binary \item{Z: ransformed propoprtions} \item{AVGIDIST: average distance between centroid and TCE sites} \item{PEXPOSURE: "exposure potential": inverse distance between each census tract centroid and the nearest TCE site, IDIST, transformed via log(100*IDIST)} +\item{Cases: as TRACTCAS with more digits} +\item{Xm: X in metres} +\item{Ym: Y in metres} +\item{Xshift: feature offset} +\item{Yshift: feature offset} } } \source{ @@ -33,7 +38,7 @@ nydata New York leukemia data taken from the data sets supporting Waller and Gotway 2004 (the data should be loaded by running \code{example(NY_data)} to demonstrate spatial data import techniques) } \details{ -The examples section shows how the DBF files from the book website for Chapter 9 were converted into the \code{nydata} data frame and the \code{listw_NY} spatial weights list. The \code{shapes} directory includes the original version of the UTM18 census tract boundaries imported from BNA format (http://sedac.ciesin.columbia.edu/ftpsite/pub/census/usa/tiger/ny/bna_st/t8_36.zip) before the OGR/GDAL BNA driver was available. The \code{NY8_utm18} shapefile was constructed using a bna2mif converter and converted to shapefile format after adding data using \code{writeOGR}. The new file \code{NY8_bna_utm18.gpkg} has been constructed from the original BNA file, but read using the OGR BNA driver with GEOS support. The NY8 shapefile includes invalid polygons, but because the OGR BNA driver may have GEOS support (used here), the tract polygon objects are valid. +The examples section shows how the DBF files from the book website for Chapter 9 were converted into the \code{nydata} data frame and the \code{listw_NY} spatial weights list. The \code{shapes} directory includes the original version of the UTM18 census tract boundaries imported from BNA format (http://sedac.ciesin.columbia.edu/ftpsite/pub/census/usa/tiger/ny/bna_st/t8_36.zip) before the OGR/GDAL BNA driver was available. The \code{NY8_utm18} shapefile was constructed using a bna2mif converter and converted to shapefile format after adding data using \code{writeOGR}. The new file \code{NY8_bna_utm18.gpkg} has been constructed from the original BNA file, but read using the OGR BNA driver with GEOS support. The NY8 shapefile and GeoPackage NY8_utm18.gpkg include invalid polygons, but because the OGR BNA driver may have GEOS support (used here), the tract polygon objects in NY8_bna_utm18.gpkg are valid. } \examples{ ## NY leukemia