A vectra_node with group columns and a count column.
Arguments
x
A vectra_node object.
...
Grouping columns (unquoted).
wt
Column to weight by (unquoted). If NULL, counts rows.
sort
If TRUE, sort output in descending order of n.
name
Name of the count column (default "n").
Details
Equivalent to group_by(...) |> summarise(n = n()). When wt is
provided, uses sum(wt) instead of n(). When sort = TRUE, results
are sorted in descending order of the count column.