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/call_function.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/call_function.Rd')
-rw-r--r-- | src/arrow/r/man/call_function.Rd | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/arrow/r/man/call_function.Rd b/src/arrow/r/man/call_function.Rd new file mode 100644 index 000000000..c216af06f --- /dev/null +++ b/src/arrow/r/man/call_function.Rd @@ -0,0 +1,51 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/compute.R +\name{call_function} +\alias{call_function} +\title{Call an Arrow compute function} +\usage{ +call_function( + function_name, + ..., + args = list(...), + options = empty_named_list() +) +} +\arguments{ +\item{function_name}{string Arrow compute function name} + +\item{...}{Function arguments, which may include \code{Array}, \code{ChunkedArray}, \code{Scalar}, +\code{RecordBatch}, or \code{Table}.} + +\item{args}{list arguments as an alternative to specifying in \code{...}} + +\item{options}{named list of C++ function options.} +} +\value{ +An \code{Array}, \code{ChunkedArray}, \code{Scalar}, \code{RecordBatch}, or \code{Table}, whatever the compute function results in. +} +\description{ +This function provides a lower-level API for calling Arrow functions by their +string function name. You won't use it directly for most applications. +Many Arrow compute functions are mapped to R methods, +and in a \code{dplyr} evaluation context, \link[=list_compute_functions]{all Arrow functions} +are callable with an \code{arrow_} prefix. +} +\details{ +When passing indices in \code{...}, \code{args}, or \code{options}, express them as +0-based integers (consistent with C++). +} +\examples{ +\dontshow{if (arrow_available()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +a <- Array$create(c(1L, 2L, 3L, NA, 5L)) +s <- Scalar$create(4L) +call_function("coalesce", a, s) + +a <- Array$create(rnorm(10000)) +call_function("quantile", a, options = list(q = seq(0, 1, 0.25))) +\dontshow{\}) # examplesIf} +} +\seealso{ +\href{https://arrow.apache.org/docs/cpp/compute.html}{Arrow C++ documentation} for +the functions and their respective options. +} |