Keeps the last n (or prop fraction of) rows of a GPU table, as
dplyr::slice_tail() does. It runs on the GPU, ungrouped, after
group_by() and with by; see slice_head.tbl_gpu() for the order of
the groups in the result.
Usage
# S3 method for class 'tbl_gpu'
slice_tail(.data, ..., n, prop, by = NULL)Arguments
- .data
A
tbl_gpuobject created bytbl_gpu().- ...
Not used; for extensibility, must be empty.
- n
Number of rows to keep. Negative
nkeeps all but the lastabs(n)rows. Clamped to[0, nrow(.data)](grouped:[0, group_size], per group). Default1if neithernnorpropis supplied.- prop
Proportion of rows to keep (
floor(prop * nrow(.data)), clamped liken; grouped:floor(prop * group_size), per group). Exactly one ofn/propmay be supplied.- by
Optional grouping columns for this call only, run on the GPU. As in dplyr, the result has the groups in the order each one first appears in
.data, and it is ungrouped. Supplyingbywhen.datais already grouped (viagroup_by()) is an error, as in dplyr.
