[<-.sk | 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 'sk'
x[i = NULL, j = NULL] <- value
x |
an sk object |
i |
column-vectorized index |
j |
index of layer (only for multi-layer x) |
value |
the replacement values |
the "sk" object with the specified subset replaced by value
g = sk_validate(list(gval=stats::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.