knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
spatialhelpers
provides a variety of convenience functions for working with spatial data. Presently, these all simplify manipulation of spatial weights objects:
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("loganstundal/spatialhelpers")
w_borders
- constructs spatial weights using border lengths shared between unitsw_data
- constructs spatial weights using dyadic data producing a
symmetric matrix for absolute flows between units or an asymmetric matrix for relative flowsw_report
- reports unit neighbors or neighbor values in a w matrixw_sim
- simulates a spatial weights matrixw_tidy
- uses an R formula to remove elements of a spatial weights matrix corresponding to observations in data with missing valuesAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.