readOGR() cannot open file

后端 未结 6 923
臣服心动
臣服心动 2020-12-08 00:50
wmap <- readOGR(dsn=\"~/R/funwithR/data/ne_110m_land\", layer=\"ne_110m_land\")

This code is not loading the shape file and error is generated a

6条回答
  •  执念已碎
    2020-12-08 01:30

    Here's what worked for me (with a real example)

    require(rgdal)
    shape <- readOGR(dsn = "1259030001_ste11aaust_shape/STE11aAust.shp", layer = "STE11aAust")
    

    The exact data is available here (download the .zip file called 'State and Territory ASGC Ed 2011 Digital Boundaries in MapInfo Interchange Format')

提交回复
热议问题