Learn R Programming

shard (version 0.1.0)

as.double.shard_buffer: Coerce a Shared Memory Buffer to Double

Description

Coerce a Shared Memory Buffer to Double

Usage

# S3 method for shard_buffer
as.double(x, ...)

Value

A double vector with the buffer contents.

Arguments

x

A shard_buffer object.

...

Ignored.

Examples

Run this code
# \donttest{
buf <- buffer("double", dim = 5)
as.double(buf)
buffer_close(buf)
# }

Run the code above in your browser using DataLab