Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 r 中加载 shp 文件:
setwd("something") shp = readOGR(dsn = ".", layer = "shp_name")
现在,我想将其转换为普通数据框。我该怎么办?
我找到了答案。它就像一般工作:
shp_df = as.data.frame(shp, xy = T)
你不必总是把事情复杂化...