View source: R/selectGridcells.R
selectGridcells | R Documentation |
Select gridcells from a Field (or a data.table or a data.frame) using either gridcell coordinates or polgyons (from, for example, a shapefile).
selectGridcells(
x,
gridcells,
spatial.extent.id = NULL,
tolerance = NULL,
decimal.places = NULL,
cover.threshold = NULL,
...
)
x |
The Field, data.table or data.frame from which the gridcells should be selected. Note that a data.table or data.frame should have columns "Lon" and "Lat" included. |
gridcells |
The gridcells to be extracted. These can be specified as one of the following:
|
spatial.extent.id |
A character string to describe the gridcells selected. When selecting gridcells from a Field you *must* specify
a |
tolerance |
A single numeric specifying how close a required gridcell in gridcells must be to one in |
decimal.places |
A single numeric specifying how many decimal place to which the coordinates should rounded to facilitate a match. If not specified not rounding is done. |
cover.threshold |
An optional numeric specifying what fraction of the gridcell must be covered by a feature in the case the |
... |
Further arguments. Currently not used. |
A Field, data.frame or data.table depending on the class of the main input x.
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.