make_extent: Converts coordinates or polygons to bounding boxes

View source: R/new_functions.R

make_extentR Documentation

Converts coordinates or polygons to bounding boxes

Description

If using a list of coordinates (e.g. study sites) or a polygon (e.g. a species range map) to define the area of interest, this will convert it to an extent

Usage

make_extent(lat = NULL, lon = NULL, polygon = NULL)

Arguments

lat

a numeric or character vector of latitudes

lon

a numeric or character vector of longitudes

polygon

an object of class SpatialPolygons

Value

an object of class extent


elizagrames/climetric documentation built on Nov. 1, 2022, 6:26 a.m.