R/sf_geoda.R
sp_to_geoda.Rd
Create an instance of geoda-class from a 'sp' object. NOTE: The table content is NOT used to create an instance of geoda-class.
sp_to_geoda(sp_obj, with_table = TRUE)
An instance of 'sp' object
A boolean flag indicates if table is copied from sf object to create geoda object. Default is TRUE
An instance of geoda-class