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 dplyr
evaluation context, all Arrow functions
are callable with an arrow_
prefix.
call_function( function_name, ..., args = list(...), options = empty_named_list() )
function_name | string Arrow compute function name |
---|---|
... | Function arguments, which may include |
args | list arguments as an alternative to specifying in |
options | named list of C++ function options. |
An Array
, ChunkedArray
, Scalar
, RecordBatch
, or Table
, whatever the compute function results in.
When passing indices in ...
, args
, or options
, express them as
0-based integers (consistent with C++).
Arrow C++ documentation for the functions and their respective options.
#> Array #> <int32> #> [ #> 1, #> 2, #> 3, #> 4, #> 5 #> ]#> Array #> <double> #> [ #> -3.30418, #> -0.675502, #> 0.0011219, #> 0.674598, #> 3.58895 #> ]