| delarr_shard | R Documentation |
Wraps a numeric matrix or array into shard's shared memory, returning a
delarr.
The shared ALTREP vector is stored on the seed so that collect_shard()
can reuse it without re-sharing (zero-copy).
delarr_shard(x, backing = "auto")
x |
A numeric matrix or array. |
backing |
Backing type passed to |
A delarr backed by shared memory.
if (requireNamespace("shard", quietly = TRUE)) {
mat <- matrix(rnorm(20), 4, 5)
darr <- delarr_shard(mat)
collect(darr)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.