Description Usage Arguments Details Value See Also Examples
This function returns a new raster based on an existing raster and cell numbers for that raster.
The new raster is cropped to the cell numbers provided, and, if values=TRUE
has values that are the cell numbers of the original raster.
1 | rasterFromCells(x, cells, values=TRUE)
|
x |
Raster* object (or a SpatialPixels* or SpatialGrid* object) |
cells |
vector of cell numbers |
values |
Logical. If |
Cell numbers start at 1 in the upper left corner, and increase from left to right, and then from top to bottom. The last cell number equals the number of cells of the Raster* object.
RasterLayer
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.