dplyr::reframe() for a tbl_gpu. The result is always ungrouped:
group_by() keys come out sorted, .by keys in first-appearance order, and
size-1 results are recycled to each group's size.
Usage
# S3 method for class 'tbl_gpu'
reframe(.data, ..., .by = NULL)Arguments
- .data
A
tbl_gpu.- ...
Name-value pairs, as in
dplyr::reframe().- .by
Optional per-operation grouping, as in
dplyr::reframe().
Native shapes
The call runs on the GPU when every expression is named and is one of:
quantile(x, probs)(stats::) withprobsa column-free constant in [0, 1], a literalna.rm,typeabsent or 7;range(x)(base::) with a literalna.rm;n(), orsum(),mean(),min(),max(),sd(),var(),median()of one argument with a literalna.rm;a column-free constant vector (
c(0.25, 0.75),"lo"), recycled.
The argument x must be an input column, or arithmetic (+ - * / %% %/%,
abs(), exp(); %% and %/% take an integer divisor or a whole-number
double literal), comparisons, & | ! and is.na() over integer, double
and logical columns and literals, with no window or aggregate call inside.
Comparisons, & | ! and is.na() take only integer and logical columns,
integer arithmetic on them, and literals.
quantile() takes integers and doubles, median() only doubles; min(),
max() and range() also take a bare Date or POSIXct column, and a bare
string column under a C collation. Sizes above 1 must agree, and no
expression may read an earlier one's result.
Anything else runs dplyr's reframe() on the CPU (see cuplyr-fallback).
One divergence remains on the native path: quantile() with more than one
probability drops its element names ("10%", "90%"). The CPU path keeps
them, as dplyr does.
