rgeoda icon indicating copy to clipboard operation
rgeoda copied to clipboard

Error when using "sf" "grouped_df" "tbl_df" "tbl" "data.frame" in queen_weights()

Open PauGallesClara opened this issue 3 years ago • 2 comments

Hi ! I get this error "Error in as.geoda(sf_obj, with_table = FALSE) : as.geoda() takes either an 'sf' or 'sp' object. " when using queen_weights ().
I'm using a class object "sf" "grouped_df" "tbl_df" "tbl" "data.frame" and I thought that because is an sf one i could run properly. What am I missing ?

Thank you in advance

PauGallesClara avatar Aug 10 '21 11:08 PauGallesClara

Thanks, @PauGallesClara ! I think this issue is related to https://github.com/GeoDaCenter/rgeoda/issues/19, which has been fixed in version 0.0.8-4. What is the version of rgeoda your are using? Could you try version 0.0.8-4 to see if this issue has been addressed? Thank you!

lixun910 avatar Aug 10 '21 16:08 lixun910

Yes, the problem is solved by updating the rgeoda package to 0.0.8-4 version

Many thanks

PauGallesClara avatar Aug 11 '21 11:08 PauGallesClara