geoda_open: Create a geoda object by reading a spatial dataset

Description Usage Arguments Value Examples

View source: R/read_geoda.R

Description

Create a geoda object by reading a spatial dataset. The dataset that rgeoda supports includes: ESRI Shapefile, MapInfo File, CSV, GML, GPX, KML, GeoJSON, TopoJSON, OpenFileGDB, GFT Google Fusion Tables, CouchDB

Usage

1
geoda_open(ds_path)

Arguments

ds_path

(character) The path of the spatial dataset

Value

gda_obj An object of geoda instance

Examples

1
2
3
4
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
guerry_df <- as.data.frame(guerry) # access as a data.frame
head(guerry_df)

lixun910/rgeoda documentation built on March 19, 2021, 3:49 p.m.