as.vector.sk | R Documentation |
Returns a vector of the specified mode, representing the vectorized grid data.
For multi-layer x
, the first layer is returned.
## S3 method for class 'sk'
as.vector(x, mode = "any")
x |
a sk object |
mode |
passed to as.vector |
For single layer x
, and with default mode='any'
, this is the same as x[]
a vector of the specified mode
g = sk_validate(list(gval=stats::rnorm(4^2), gdim=4, gres=0.5))
as.vector(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.