Description Usage Arguments Value
Whereas grd()
objects always index grd_data()
using
y, x axis order with y values decreasing with increasing
index value, data are often stored in other configurations.
The grd_data_generic()
class wraps the common case where
axis order or axis direction differs from the default.
The resulting object retains a reference to the underlying
data but takes care of rearranging the calls to dim()
,
[
, and [<-
such that the object can be indexed
and modified in the same way.
1 2 3 4 5 | grd_data_generic(
grid_data,
data_order = grd_data_order(grid_data),
ptype = grd_data_ptype(grid_data)
)
|
grid_data |
The |
data_order |
A character vector with the
same length as |
ptype |
The R object type that should be used to represent the data. |
An object of class grd_data_generic
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.