nanoarrow_buffer_init | R Documentation |
Create and modify nanoarrow buffers
nanoarrow_buffer_init()
nanoarrow_buffer_append(buffer, new_buffer)
convert_buffer(buffer, to = NULL)
buffer , new_buffer |
nanoarrow_buffers. |
to |
A target prototype object describing the type to which |
nanoarrow_buffer_init()
: An object of class 'nanoarrow_buffer'
nanoarrow_buffer_append()
: Returns buffer
, invisibly. Note that
buffer
is modified in place by reference.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.