rgeoda icon indicating copy to clipboard operation
rgeoda copied to clipboard

read_gal can't work

Open SpatLyu opened this issue 8 months ago • 0 comments

library(rgeoda)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- sf::read_sf(guerry_path)
queen_w <- queen_weights(guerry)
save_weights(queen_w, guerry['CODE_DE'], './guerry1.gal')
w <- read_gal('./guerry1.gal', guerry['CODE_DE'][[1]])

The last line of code w <- read_gal('./guerry1.gal', guerry['CODE_DE'][[1]]) does not work properly

SpatLyu avatar Jun 13 '24 09:06 SpatLyu