write_to_raw {arrow} | R Documentation |
Write Arrow data to a raw vector
Description
write_ipc_stream()
and write_feather()
write data to a sink and return
the data (data.frame
, RecordBatch
, or Table
) they were given.
This function wraps those so that you can serialize data to a buffer and
access that buffer as a raw
vector in R.
Usage
write_to_raw(x, format = c("stream", "file"))
Arguments
x |
|
format |
one of |
Value
A raw
vector containing the bytes of the IPC serialized data.
Examples
# The default format is "stream"
mtcars_raw <- write_to_raw(mtcars)
[Package arrow version 16.1.0 Index]