跳到內容

write_ipc_stream()write_feather() 將資料寫入接收器並傳回它們被給予的資料 (data.frameRecordBatchTable)。此函數包裝了這些函數,以便您可以將資料序列化到緩衝區,並在 R 中以 raw 向量的形式存取該緩衝區。

用法

write_to_raw(x, format = c("stream", "file"))

參數

x

data.frameRecordBatchTable

format

c("stream", "file") 其中之一,指示要使用的 IPC 格式

包含 IPC 序列化資料位元組的 raw 向量。

範例

# The default format is "stream"
mtcars_raw <- write_to_raw(mtcars)