| as.array.shard_buffer | R Documentation |
Coerce a Shared Memory Buffer to Array
## S3 method for class 'shard_buffer'
as.array(x, ...)
x |
A |
... |
Ignored. |
An array with the buffer contents and the buffer's dimensions, or a plain vector for 1-D buffers.
buf <- buffer("double", dim = c(2, 3, 4))
as.array(buf)
buffer_close(buf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.