read_polygons {geogrid}R Documentation

Import spatial data.

Description

Simple function to read spatial data into a SpatialPolygonsDataFrame. Based on st_read from package sf.

Usage

read_polygons(file)

Arguments

file

A file path pointing to a shapefile or GeoJSON file, or a character string holding GeoJSON data. See the dsn argument of st_read for more details.


[Package geogrid version 0.1.2 Index]