Learn R Programming

anglr (version 0.7.0)

sf_extent: Extent of simple features

Description

Get Extent of sf objects

Usage

sf_extent(x)

Arguments

x

sf object

Value

a raster Extent

Details

This function exists to avoid raster needing the sf package. We don't need GDAL, GEOS, and all the other fun stuff to find four numbers that describe coordinate range, so this is a workaround.

Examples

Run this code
# NOT RUN {
sf_extent(silicate::inlandwaters)
# }

Run the code above in your browser using DataLab