is_symmetric: Symmetry of Weights Matrix

View source: R/weights.R

is_symmetricR Documentation

Symmetry of Weights Matrix

Description

Check if weights matrix is symmetric

Usage

is_symmetric(gda_w)

Arguments

gda_w

A Weight object

Value

A boolean value indicates if weights matrix is symmetric

Examples

## Not run: 
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
is_symmetric(queen_w)

## End(Not run)

GeoDaCenter/rgeoda documentation built on Dec. 20, 2024, 11:18 p.m.