Description Usage Arguments Details Value Author(s) Examples
Compute the approximate surface span of polygons in longitude and latitude direction. Span is computed by rasterizing the polygons; and precision increases with the number of 'scan lines'. You can either use a fixed number of scan lines for each polygon, or a fixed band-width.
1 |
x |
a SpatialPolygons* object or a 2-column matrix (longitude/latitude) |
... |
Additional arguments, see Details |
The following additional arguments can be passed, to replace default values for this function
nbands | Character. Method to determine the number of bands to 'scan' the polygon. Either 'fixed' or 'variable' | |
n | Integer >= 1. If nbands='fixed' , how many bands should be used |
|
res | Numeric. If nbands='variable' , what should the bandwidth be (in degrees)? |
|
fun | Logical. A function such as mean or min. Mean computes the average span | |
... | further additional arguments passed to distGeo | |
A list, or a matrix if a function fun
is specified. Values are in the units of r
(default is meter)
Robert J. Hijmans
1 2 3 4 5 6 7 8 9 |
Loading required package: sp
Loading required namespace: raster
lon lat
[1,] 13158790 6222760
[1] 6222760
[1] 3618607
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.