Learn R Programming

raster (version 1.9-70)

intersectExtent: Extent intersection

Description

Obsolete. See intersect

Usage

intersectExtent(x, ..., validate=TRUE)

Arguments

x
Extent object or object from which it can be coerced via extent (Raster* or Spatial* objects)
...
Additional Extent or Raster* or Spatial* objects
validate
Logical. If TRUE, an error is returned if the intersection is empty; else NULL is returned if the intersection is empty

Value

  • Extent object

See Also

union, intersect, extent

Examples

Run this code
e1 <- extent(-10, 10, -20, 20)
e2 <- extent(0, 20, -40, 5)
intersectExtent(e1, e2)

Run the code above in your browser using DataLab