powered by
Coerce a Shared Memory Buffer to a Vector
# S3 method for shard_buffer as.vector(x, mode = "any")
A vector of the buffer's type (or coerced to mode).
mode
A shard_buffer object.
shard_buffer
Storage mode passed to as.vector.
as.vector
# \donttest{ buf <- buffer("double", dim = 5) buf[1:5] <- 1:5 as.vector(buf) buffer_close(buf) # }
Run the code above in your browser using DataLab