Description Usage Arguments Value See Also
View source: R/Spatial_Functions.R
A cell is covered if its center is inside the polygon (but see the weights option for considering partly covered cells).
1 | extract_blocks(x, y, weights = FALSE)
|
x |
Raster* object |
y |
A matrix with four columns: “xmin”,
“xmax”, “ymin”, “ymax”; each row
represents the corners of an
|
weights |
logical. If |
A list with one item for each extent of y
.
Each element is a matrix where each row corresponds to one of the cells
of x
contained in a
sp::SpatialPolygons
and where
columns correspond to layers of x
. If weights
is
TRUE
, then an additional last column is added which contains the
weights of the rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.