grd_extract {wk} | R Documentation |
Extract values from a grid
Description
Unlike grd_subset()
, which subsets like a matrix, grd_extract()
returns
values.
Usage
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)
Arguments
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 |
Value
A matrix or vector with two fewer dimensions than the input.
[Package wk version 0.9.2 Index]