1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error in reading shapefile in R

Discussion in 'Programming/Internet' started by Bessie Bai, Sep 12, 2018.

  1. Bessie Bai

    Bessie Bai Guest

    When I try to read shapefiles in a loop in R, it always reports

    "Error in .local(x, ...) : file.exists(extension(x, ".shp")) is not TRUE " .

    The code that I use to read the shapefile is

    "city.i=shapefile(citynames1) "

    where citynames1 is a vector of shapefile names with the extension of .shp.

    Thanks very much for your help.

    Login To add answer/comment

Share This Page