View source: R/export-methods.R
promoteToRaster | R Documentation |
Converts a Field, Comparison or data.table to a Raster object, also subsetting the requested layers. This is generally called in the as.Raster and the setAs functions but can be useful in and of itself.
promoteToRaster(
input.data,
layers = "all",
tolerance = 0.01,
grid.topology = NULL
)
input.data |
Field, Comparison or data.table |
layers |
The columns to be selected included in the final Raster* object. Use NULL or "all" if all layers are required. |
tolerance |
Tolerance (in fraction of gridcell size) for unevenly spaced Lon and Lats, when converting gridded table to a raster. |
grid.topology |
A character string defining the grid topology when going from a table to raster, used in a call to SpatialPixels |
A RasterLayer (or RasterBrick)
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.