grd_extract | R Documentation |
Unlike grd_subset()
, which subsets like a matrix, grd_extract()
returns
values.
grd_extract(grid, i = NULL, j = NULL)
grd_extract_nearest(grid, point, out_of_bounds = c("censor", "squish"))
grd_data_extract(grid_data, i = NULL, j = NULL)
grid |
A |
i , j |
Index values as in |
point |
A handleable of points. |
out_of_bounds |
One of 'keep', 'censor', 'discard', or 'squish' |
grid_data |
The |
A matrix or vector with two fewer dimensions than the input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.