File: write_to_raw.Rd

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (26 lines) | stat: -rw-r--r-- 906 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ipc-stream.R
\name{write_to_raw}
\alias{write_to_raw}
\title{Write Arrow data to a raw vector}
\usage{
write_to_raw(x, format = c("stream", "file"))
}
\arguments{
\item{x}{\code{data.frame}, \link{RecordBatch}, or \link{Table}}

\item{format}{one of \code{c("stream", "file")}, indicating the IPC format to use}
}
\value{
A \code{raw} vector containing the bytes of the IPC serialized data.
}
\description{
\code{\link[=write_ipc_stream]{write_ipc_stream()}} and \code{\link[=write_feather]{write_feather()}} write data to a sink and return
the data (\code{data.frame}, \code{RecordBatch}, or \code{Table}) they were given.
This function wraps those so that you can serialize data to a buffer and
access that buffer as a \code{raw} vector in R.
}
\examples{
# The default format is "stream"
mtcars_raw <- write_to_raw(mtcars)
}