nanoarrow_buffer_init {nanoarrow} | R Documentation |
Create and modify nanoarrow buffers
Description
Create and modify nanoarrow buffers
Usage
nanoarrow_buffer_init()
nanoarrow_buffer_append(buffer, new_buffer)
convert_buffer(buffer, to = NULL)
Arguments
buffer , new_buffer |
|
to |
A target prototype object describing the type to which |
Value
-
nanoarrow_buffer_init()
: An object of class 'nanoarrow_buffer' -
nanoarrow_buffer_append()
: Returnsbuffer
, invisibly. Note thatbuffer
is modified in place by reference.
Examples
buffer <- nanoarrow_buffer_init()
nanoarrow_buffer_append(buffer, 1:5)
array <- nanoarrow_array_modify(
nanoarrow_array_init(na_int32()),
list(length = 5, buffers = list(NULL, buffer))
)
as.vector(array)
[Package nanoarrow version 0.5.0.1 Index]