| as.vector.shard_buffer | R Documentation |
Coerce a Shared Memory Buffer to a Vector
## S3 method for class 'shard_buffer'
as.vector(x, mode = "any")
x |
A |
mode |
Storage mode passed to |
A vector of the buffer's type (or coerced to mode).
buf <- buffer("double", dim = 5)
buf[1:5] <- 1:5
as.vector(buf)
buffer_close(buf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.