Skip to content

readOGR will not read the shapefile #1

Description

@alostado

Hi, I was working with your code to learn how to handle maps in R but I somehow can't get it to open the shapefile with the municipalities map.

When I run
municipalities_spain = readOGR(dsn="Municipios_ETRS89_30N.shp", layer="Municipios_ETRS89_30N")
I get that R "cannot open data source". I've changed the directory and, in my eyes, everything is fine, so I don't know where the mistake is, and much less how to fix it.
I am fairly new to this, so please excuse the vagueness of my question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions