SpatLyu / tidyrgeoda

A tidy interface for rgeoda
https://spatlyu.github.io/tidyrgeoda/
13 stars 1 forks source link

why no result #1

Open tianjinwolaile opened 5 months ago

tianjinwolaile commented 5 months ago

tidyrgeoda::read_geoda(file_path="D:\R_library\trypackage\mvstats\inst\extdata\中华人民共和国.gal") i have waited for a long time ,but there is no result,why? image

tianjinwolaile commented 5 months ago

there is no error or warning ,it is my file have error?

SpatLyu commented 5 months ago

tidyrgeoda invokes rgeoda to do local spatial autocorrelation statistics.

When you use read_geoda, you actually call read_gal read_gwt read_swm in rgeoda. You can try it use rgeoda::read_gal.

I guess it's a problem with your gal file. How did you get the gal file?

SpatLyu commented 5 months ago

Try to open it in GeoDa or any other GUI software to determine if there is a problem with your file.

tianjinwolaile commented 5 months ago

i get the file by geoda software,to get the weight matrix,thank you

---Original--- From: "Wenbo @.> Date: Thu, Jun 13, 2024 15:08 PM To: @.>; Cc: @.**@.>; Subject: Re: [SpatLyu/tidyrgeoda] why no result (Issue #1)

tidyrgeoda invokes rgeoda to do local spatial autocorrelation statistics.

When you use read_geoda, you actually call read_gal read_gwt read_swm in rgeoda. You can try it use rgeoda::read_gal.

I guess it's a problem with your gal file. How did you get the gal file?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tianjinwolaile commented 5 months ago

if there is an example file of gal,i have a try,thank you

---Original--- From: "Wenbo @.> Date: Thu, Jun 13, 2024 15:10 PM To: @.>; Cc: @.**@.>; Subject: Re: [SpatLyu/tidyrgeoda] why no result (Issue #1)

Try to open it in GeoDa or any other GUI software to determine if there is a problem with your file.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

SpatLyu commented 5 months ago

Good. can you try to test whether it can be used in GeoDa GUI software?

tidyrgeoda::read_geoda(file_path="D:\R_library\trypackage\mvstats\inst\extdata\中华人民共和国.gal") i have waited for a long time ,but there is no result,why? image

tianjinwolaile commented 5 months ago

i try producting a new gal file,it still no result

---Original--- From: "Wenbo @.> Date: Thu, Jun 13, 2024 15:14 PM To: @.>; Cc: @.**@.>; Subject: Re: [SpatLyu/tidyrgeoda] why no result (Issue #1)

Good. can you try to test whether it can be used in GeoDa GUI software?

tidyrgeoda::read_geoda(file_path="D:\R_library\trypackage\mvstats\inst\extdata\中华人民共和国.gal") i have waited for a long time ,but there is no result,why?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

SpatLyu commented 5 months ago

The problem is that id_vec is not synchronized when reading and writing. The GeoDa desktop should use a default id_vec but tidyrgeoda uses tibble::tibble(id_v = 1:wt$num_obs).

SpatLyu commented 5 months ago

I make a new release of tidyrgeoda, wait a little time

tianjinwolaile commented 5 months ago

ok

---Original--- From: "Wenbo @.> Date: Thu, Jun 13, 2024 15:50 PM To: @.>; Cc: @.**@.>; Subject: Re: [SpatLyu/tidyrgeoda] why no result (Issue #1)

I make a new release of tidyrgeoda, wait a little time

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

SpatLyu commented 5 months ago

I have tried a lot,I am now certain that the bug is from the rgeoda package see [here](https://github.com/GeoDaCenter/rgeoda/issues/47), but this does not affect the main functionality of rgeoda and tidyrgeoda

tianjinwolaile commented 5 months ago

ok

---Original--- From: "Wenbo @.> Date: Thu, Jun 13, 2024 17:19 PM To: @.>; Cc: @.**@.>; Subject: Re: [SpatLyu/tidyrgeoda] why no result (Issue #1)

I have tried a lot,I am now certain that the bug is from the rgeoda package see here, but this does not affect the main functionality of rgeoda and tidyrgeoda

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>