Description Usage Arguments Value
The sp package has been an essential tool which provides spatial data-structures and many utility functions to do spatial analysis in R. It has been a core dependent library for many other packages, e.g. rgdal (IO), maptools (mapping), spdep (spatial weights, spatial statistics, and spatial models) etc. Using rgdal to read a ESRI Shapefile will return a sp (Spatial object) object, which could be either a SpatialPointsDataFrame (using an AttributeList for its data slot directly), a SpatialLinesDataFrame, or a SpatialPolygonsDataFrame.
1 | sp_to_geoda(sp_obj, with_table = FALSE)
|
sp_obj |
An instance of sp object |
with_table |
Optional, Default: FALSE If create a table from sp dataframe object. |
geoda_obj An instance of GeoDa object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.