From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/arrow/r/man/write_feather.Rd | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/arrow/r/man/write_feather.Rd (limited to 'src/arrow/r/man/write_feather.Rd') diff --git a/src/arrow/r/man/write_feather.Rd b/src/arrow/r/man/write_feather.Rd new file mode 100644 index 000000000..c6273b61b --- /dev/null +++ b/src/arrow/r/man/write_feather.Rd @@ -0,0 +1,61 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/feather.R +\name{write_feather} +\alias{write_feather} +\title{Write data in the Feather format} +\usage{ +write_feather( + x, + sink, + version = 2, + chunk_size = 65536L, + compression = c("default", "lz4", "uncompressed", "zstd"), + compression_level = NULL +) +} +\arguments{ +\item{x}{\code{data.frame}, \link{RecordBatch}, or \link{Table}} + +\item{sink}{A string file path, URI, or \link{OutputStream}, or path in a file +system (\code{SubTreeFileSystem})} + +\item{version}{integer Feather file version. Version 2 is the current. +Version 1 is the more limited legacy format.} + +\item{chunk_size}{For V2 files, the number of rows that each chunk of data +should have in the file. Use a smaller \code{chunk_size} when you need faster +random row access. Default is 64K. This option is not supported for V1.} + +\item{compression}{Name of compression codec to use, if any. Default is +"lz4" if LZ4 is available in your build of the Arrow C++ library, otherwise +"uncompressed". "zstd" is the other available codec and generally has better +compression ratios in exchange for slower read and write performance +See \code{\link[=codec_is_available]{codec_is_available()}}. This option is not supported for V1.} + +\item{compression_level}{If \code{compression} is "zstd", you may +specify an integer compression level. If omitted, the compression codec's +default compression level is used.} +} +\value{ +The input \code{x}, invisibly. Note that if \code{sink} is an \link{OutputStream}, +the stream will be left open. +} +\description{ +Feather provides binary columnar serialization for data frames. +It is designed to make reading and writing data frames efficient, +and to make sharing data across data analysis languages easy. +This function writes both the original, limited specification of the format +and the version 2 specification, which is the Apache Arrow IPC file format. +} +\examples{ +\dontshow{if (arrow_available()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +tf <- tempfile() +on.exit(unlink(tf)) +write_feather(mtcars, tf) +\dontshow{\}) # examplesIf} +} +\seealso{ +\link{RecordBatchWriter} for lower-level access to writing Arrow IPC data. + +\link{Schema} for information about schemas and metadata handling. +} -- cgit v1.2.3