crop-methods | R Documentation |
Methods for cropping DGVMTools objects (and data.tables) to each other, to raster and sp objects (and basically anything that can be coerced in a raster::Extent object). The data.table in the "data" slot of the DGVMTools object (or the stand-alone data.table), must have columns named "Lon" and "Lat" otherwise these methods fail. Unpleasantly.
## S4 method for signature 'Field'
crop(x, y, spatial.extent.id = NULL, ...)
## S4 method for signature 'Comparison'
crop(x, y, spatial.extent.id = NULL, ...)
## S4 method for signature 'data.table'
crop(x, y, spatial.extent.id = NULL, ...)
x |
A Field or Comparison or a stand-alone data.table to be cropped |
y |
Anything from which raster::Extent object can be derived |
spatial.extent.id |
A character string to describe the spatial extent (y) required for meta-data consistency.
Must be provided when cropping |
... |
Other arguments, not currently used |
A spatially cropped object
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.