Description Usage Arguments Value Examples
Grid data interface
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | grd_data(grid)
grd_data_ptype(grid_data)
## S3 method for class 'array'
grd_data_ptype(grid_data)
grd_data_collect(
grid_data,
i = NULL,
j = NULL,
...,
ptype = grd_data_ptype(grid_data)
)
## S3 method for class 'array'
grd_data_collect(
grid_data,
i = NULL,
j = NULL,
...,
ptype = grd_data_ptype(grid_data)
)
grd_data_subset(grid_data, i = NULL, j = NULL, ...)
## Default S3 method:
grd_data_subset(grid_data, i = NULL, j = NULL, ...)
## S3 method for class 'nativeRaster'
grd_data_subset(grid_data, i = NULL, j = NULL, ...)
grd_data_order(grid_data)
## Default S3 method:
grd_data_order(grid_data)
## S3 method for class 'nativeRaster'
grd_data_order(grid_data)
|
grid |
A |
grid_data |
The |
i, j |
1-based index values. |
... |
Passed to S3 methods. |
ptype |
The R object type that should be used to represent the data. |
grd_data()
returns the data member of a grd()
.
grd_data_subset()
returns a subset of the data independent of the
parent grd()
but using the same indexing rules as grd_subset()
.
The non-xy dimensions of grid_data
are not affected.
grd_data_order()
returns c("y", "x")
for
data with a column-major internal ordering and
c("x", "y")
for data with a row-major internal
ordering. Both 'x' and 'y' can be modified with
a negative sign to indicate right-to-left
or bottom-to-top internal ordering, respectively. This value
does not affect the axis order or axis direction used to index
in grd_subset()
or grd_data_subset()
.
1 2 | grd_data(grd(nx = 3, ny = 2))
grd_data_subset(matrix(1:6, nrow = 2), 2, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.