首页 > 解决方案 > 无法在 R 中加载 shapefile

问题描述

我是 R 新手,正在尝试解决此错误。当我将路径插入到我的 shapefile 时,我不断收到此错误:

.local(x, ...) 中的错误:file.exists(extension(x, ".shp")) 不是 TRUE

以下是相关代码:

border <- shapefile("C:/Users/flygi/Documents/GreenlandProject/Data/R/Data_NDVI/gadm36/GRL") # ToDo: 插入带有国家边界的 shapefile 的链接

一个问题:如果它是文件名的一部分,是否可以在路径中使用“_”?

非常感谢你,戴安娜

标签: shapefile

解决方案


推荐阅读