Like count.tbl_gpu(), but without any ...: counts the rows of the
groups x already has (or of the whole table, if it is ungrouped). It is
one summarise.tbl_gpu() call and runs on the GPU.
Usage
# S3 method for class 'tbl_gpu'
tally(x, wt = NULL, sort = FALSE, name = NULL)Arguments
- x
A
tbl_gpuobject created bytbl_gpu().- wt
Optional weight column/expression, as
count.tbl_gpu().- sort
If
TRUE, sorts the result in descending order of the count column.- name
The name of the count column. If
NULL(default), uses"n", or"nn"/"nnn"/... if"n"already names one ofx's grouping columns. As in dplyr, only the grouping columns are checked, whereadd_count.tbl_gpu()anddplyr::add_tally()check every column.
Value
A tbl_gpu with one row per group: the grouping columns and the
count column. As after summarise(), the result drops the last
grouping column and keeps the others; this differs from
count.tbl_gpu(), which keeps x's grouping in full.
