powered by
Returns a vector of the specified mode, representing the vectorized grid data. For multi-layer x, the first layer is returned.
x
# S3 method for sk as.vector(x, mode = "any")
a vector of the specified mode
a sk object
passed to as.vector
For single layer x, and with default mode='any', this is the same as x[]
mode='any'
x[]
g = sk_validate(list(gval=stats::rnorm(4^2), gdim=4, gres=0.5)) as.vector(g)
Run the code above in your browser using DataLab