readOGR() cannot open file

后端 未结 6 932
臣服心动
臣服心动 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 01:21

    For me, the command returned the Cannot open layer error when I included the dsn and layer tags.

    So when I included it all just as readOGR('~/R/funwithR/data/ne_110m_land/ne_110m_land.shp') it worked.

    Note that my file was a gjson, so I've only seen this with readOGR('~/R/funwithR/data/ne_110m_land/ne_110m_land.gjson')

提交回复
热议问题