Description Usage Arguments Value Examples
The grd_subset()
method handles the subsetting of a grd()
in x-y space. Ordering of indices is not considered and logical
indies are recycled silently along dimensions. The result of
a grd_subset()
is always a grd()
of the same type whose
relationship to x-y space has not changed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | grd_subset(grid, i = NULL, j = NULL, ...)
grd_crop(grid, bbox, ..., step = 1L, snap = NULL)
grd_extend(grid, bbox, ..., step = 1L, snap = NULL)
## S3 method for class 'grd_rct'
grd_crop(grid, bbox, ..., step = 1L, snap = NULL)
## S3 method for class 'grd_xy'
grd_crop(grid, bbox, ..., step = 1L, snap = NULL)
## S3 method for class 'grd_rct'
grd_extend(grid, bbox, ..., step = 1L, snap = NULL)
## S3 method for class 'grd_xy'
grd_extend(grid, bbox, ..., step = 1L, snap = NULL)
|
grid |
A |
i |
1-based index values. |
j |
1-based index values. |
... |
Passed to subset methods |
bbox |
An |
step |
The difference between adjascent indices in the output |
snap |
A function that transforms real-valued indices to integer
indices (e.g., |
A modified grid
whose cell centres have not changed location
as a result of the subset.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.