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/to_arrow.Rd | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.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/to_arrow.Rd')
-rw-r--r-- | src/arrow/r/man/to_arrow.Rd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/arrow/r/man/to_arrow.Rd b/src/arrow/r/man/to_arrow.Rd new file mode 100644 index 000000000..e0c31b8dc --- /dev/null +++ b/src/arrow/r/man/to_arrow.Rd @@ -0,0 +1,33 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/duckdb.R +\name{to_arrow} +\alias{to_arrow} +\title{Create an Arrow object from others} +\usage{ +to_arrow(.data) +} +\arguments{ +\item{.data}{the object to be converted} +} +\value{ +an \code{arrow_dplyr_query} object, to be used in dplyr pipelines. +} +\description{ +This can be used in pipelines that pass data back and forth between Arrow and +other processes (like DuckDB). +} +\examples{ +\dontshow{if (getFromNamespace("run_duckdb_examples", "arrow")()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +library(dplyr) + +ds <- InMemoryDataset$create(mtcars) + +ds \%>\% + filter(mpg < 30) \%>\% + to_duckdb() \%>\% + group_by(cyl) \%>\% + summarize(mean_mpg = mean(mpg, na.rm = TRUE)) \%>\% + to_arrow() \%>\% + collect() +\dontshow{\}) # examplesIf} +} |