getextent: Get the extent of an object

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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

Author(s)

Mark Robertson

See Also

pointsworld

Examples

1
2
data(dat)
e<-getextent(dat$x,dat$y,"p")

biogeo documentation built on May 1, 2019, 8:05 p.m.