as.matrix.shard_buffer: Coerce a Shared Memory Buffer to Matrix

View source: R/buffer.R

as.matrix.shard_bufferR Documentation

Coerce a Shared Memory Buffer to Matrix

Description

Coerce a Shared Memory Buffer to Matrix

Usage

## S3 method for class 'shard_buffer'
as.matrix(x, ...)

Arguments

x

A shard_buffer object (must be 2-dimensional).

...

Ignored.

Value

A matrix with the buffer contents and the buffer's dimensions.

Examples


buf <- buffer("double", dim = c(3, 4))
as.matrix(buf)
buffer_close(buf)


shard documentation built on April 3, 2026, 9:08 a.m.