is_symmetric: Check if weights matrix is symmetric

Description Usage Arguments Value Examples

View source: R/weights.R

Description

Check if weights matrix is symmetric

Usage

1
is_symmetric(gda_w)

Arguments

gda_w

A Weight object

Value

Boolean value if weights matrix is symmetric

Examples

1
2
3
4
5
6
7
## Not run: 
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
queen_w <- queen_weights(guerry)
is_symmetric(queen_w)

## End(Not run)

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