read_polygons: Import spatial data.

View source: R/read_polygons.R

read_polygonsR 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.


geogrid documentation built on Aug. 19, 2023, 9:07 a.m.