Learn R Programming

biogeo (version 1.0)

getextent: Get the extent of an object

Description

Calculates the extent (x- and y-limits in decimal degrees)

Usage

getextent(x, y, ext)

Arguments

x
x-coordinates in decimal degrees
y
y-coordinates in decimal degrees
ext
ext can be a raster from the raster package; an extent object from the raster package; "p" which means that the extent will be derived from the x- and y-coordinates in the input.

Value

xlm
x-limits
ylm
y-limits
beyond
a vector with ones where points are beyond extent and zeros where they are within the extent

See Also

pointsworld

Examples

Run this code
data(dat)
e<-getextent(dat$x,dat$y,"p")

Run the code above in your browser using DataLab