[<-.bk | R Documentation |
Behavior depends on the class of i. For character vectors, this assigns to the named list entries of x (as usual). For numeric indices, it assigns vectorized grid data values. For multi-layer objects, specify the layer in j and supply a matrix for replacement
## S3 replacement method for class 'bk'
x[i = NULL, j = NULL, ...] <- value
x |
a bk object |
i |
column-vectorized index |
j |
index of layer (only for multi-layer x) |
value |
the replacement values |
... |
ignored |
the "bk" object with the specified subset replaced by value
g = bk_validate(list(gval=rnorm(4^2), gdim=4, gres=0.5))
print(g)
g[1] = NA
print(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.