GeoDaCenter / rgeoda

R library for spatial data analysis based on libgeoda and GeoDa
73 stars 14 forks source link

redcap (RStudio crashes) #38

Closed oousmane closed 7 months ago

oousmane commented 1 year ago

My code library(sf) library(rgeoda)

bf_geoda <- st_read(dsn = "shapefile/bf_geodata", layer = "bf_zoning_data")

queen_w <- queen_weights(bf_geoda) cls <- redcap(4, queen_w, bf_geoda["rain"],cpu_threads=1)

Also, skater return only 1 cluster and all metrics are NA. I don't know why but with guerry data everything is okay.

image

My Session Info :

R version 4.2.2 (2022-10-31) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Ventura 13.0

Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods
[7] base

loaded via a namespace (and not attached): [1] compiler_4.2.2 tools_4.2.2 rstudioapi_0.14

econmiller commented 7 months ago

This appears to be open still, and I'm experiencing the same exact issue.

image

This may be related to non-support for rgdal

oousmane commented 7 months ago

@econmiller Sorry, i forgot to close the issue. For me it was NA issue in my dataset.

oousmane commented 7 months ago

By applying dplyr::drop_na(bf_geoda) it worked.

econmiller commented 7 months ago

Ah. I'll give it a shot. Many thanks!

Sent via the Samsung Galaxy S23+ 5G, an AT&T 5G smartphone Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Ousmane Ouedraogo @.> Sent: Monday, March 25, 2024 7:28:35 PM To: GeoDaCenter/rgeoda @.> Cc: Miller, Steven @.>; Mention @.> Subject: Re: [GeoDaCenter/rgeoda] redcap (RStudio crashes) (Issue #38)

By applying dplyr::drop_na(bf_geoda) it worked.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/GeoDaCenter/rgeoda/issues/38*issuecomment-2019099950__;Iw!!HXCxUKc!wS3UdYo_RGv2I2pW_0LOpP5Nimvr2MQ5imIYb2ggkpD3Jg3_8ltBK-f-ucGJFI7hUsKXui89R4Z95BFHw10R1O361ys$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ASOJNLIX376KSUDBITGISO3Y2CXKHAVCNFSM6AAAAAAVEWWES2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJZGA4TSOJVGA__;!!HXCxUKc!wS3UdYo_RGv2I2pW_0LOpP5Nimvr2MQ5imIYb2ggkpD3Jg3_8ltBK-f-ucGJFI7hUsKXui89R4Z95BFHw10RUXyoxPU$. You are receiving this because you were mentioned.Message ID: @.***>