diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/arrow/r/man/write_to_raw.Rd | |
parent | Initial commit. (diff) | |
download | ceph-upstream/18.2.2.tar.xz ceph-upstream/18.2.2.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/arrow/r/man/write_to_raw.Rd')
-rw-r--r-- | src/arrow/r/man/write_to_raw.Rd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/arrow/r/man/write_to_raw.Rd b/src/arrow/r/man/write_to_raw.Rd new file mode 100644 index 000000000..a3c6e324b --- /dev/null +++ b/src/arrow/r/man/write_to_raw.Rd @@ -0,0 +1,28 @@ +% 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{ +\dontshow{if (arrow_available()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +# The default format is "stream" +mtcars_raw <- write_to_raw(mtcars) +\dontshow{\}) # examplesIf} +} |