Extent-class: Class "Extent"

Description Objects from the Class Slots Methods See Also Examples

Description

Objects of class Extent are used to define the spatial extent (extremes) of objects of the BasicRaster and Raster* classes.

Objects from the Class

You can use the extent function to create Extent objects, or to extract them from Raster* and Spatial* objects.

Slots

xmin:

minimum x coordinate

xmax:

maximum x coordinate

ymin:

minumum y coordinate

ymax:

maximum y coordinate

Methods

show

display values of a Extent object

See Also

extent, setExtent

Examples

1
2
ext <- extent(-180,180,-90,90)
ext

Example output

Loading required package: sp
class       : Extent 
xmin        : -180 
xmax        : 180 
ymin        : -90 
ymax        : 90 

raster documentation built on Jan. 5, 2021, 3:01 a.m.