as.vector.bk | 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 'bk'
as.vector(x, mode = "any")
x |
a bk 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 = bk_validate(list(gval=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.