How to extract 'RS4' element in Rpy2
问题 I’m a Chinese reader of book “Applied Spatial Data Analysis with R”, which is very useful for spatial analysis work. I tried to translate the R code into python with the Rpy2, since python can handle more complex data sources. But I have a problem with the Rpy2 code. The NY8 data is attached with the email. The R code is: library(rgdal) NY8<-readOGR(".","NY8_utm18") Syracuse<-NY8[NY8$AREANAME=="Syracuse city",] Sy2_nb<-poly2nb(Syracuse,queen=FALSE) library(spdep) Sy2_nb<-poly2nb(Syracuse