[[.sk<- | R Documentation |
Replace a sk list element (double-bracket assign)
## S3 method for class ''sk<-''
x[[value]]
x |
a sk object |
value |
the replacement object |
Replaces entries in the sk list object. This does no validation. If it did, then
sk_validate
would have an infinite recursion problem (it uses [[<-
). Users should
pass the results to sk_validate
afterwards unless they know what they're doing.
a "sk" object
# sk list elements are interrelated - for example gres must match spacing in gyx
g = sk_validate(list(gval=stats::rnorm(10^2), gdim=10, gres=0.5))
g[['gres']] = 2 * g[['gres']]
g[['gyx']] = lapply(g[['gyx']], function(x) 2*x)
sk_validate(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.