Learn R Programming

geogrid (version 0.1.2)

read_polygons: 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.