Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Write Arrow data to a raw vector

Source:R/ipc-stream.R
write_to_raw.Rd

write_ipc_stream() andwrite_feather() write data to a sink and returnthe data (data.frame,RecordBatch, orTable) they were given.This function wraps those so that you can serialize data to a buffer andaccess that buffer as araw vector in R.

Usage

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

Arguments

x

data.frame,RecordBatch, orTable

format

one ofc("stream", "file"), indicating the IPC format to use

Value

Araw vector containing the bytes of the IPC serialized data.

Examples

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

[8]ページ先頭

©2009-2026 Movatter.jp