as.geoda: Create an instance of geoda-class from either an 'sf' or 'sp'...

View source: R/sf_geoda.R

as.geodaR Documentation

Create an instance of geoda-class from either an 'sf' or 'sp' object

Description

Create an instance of geoda-class from an 'sf' object returned from 'st_read()' function, or a 'sp' object returned from 'readOGR()' function. NOTE: The table content is NOT used to create an instance of geoda-class.

Usage

as.geoda(obj, with_table = TRUE)

Arguments

obj

An instance of 'sf' or 'sp' object

with_table

A boolean flag indicates if table is copied from sf object to create geoda object. Default is TRUE

Value

An instance of geoda-class


rgeoda documentation built on April 3, 2025, 10:55 p.m.

Related to as.geoda in rgeoda...