Count log
Usage
count(x, ..., wt = NULL, sort = FALSE, name = NULL)
# S3 method for class 'log'
count(x, ...)
# S3 method for class 'grouped_log'
count(x, ...)
Arguments
- x
log
: Object of classeventlog
oractivitylog
.- ...
Additional arguments passed to dplyr
- wt
<
data-masking
> Frequency weights. Can beNULL
or a variable:If
NULL
(the default), counts the number of rows in each group.If a variable, computes
sum(wt)
for each group.
- sort
If
TRUE
, will show the largest groups at the top.- name
The name of the new column in the output.
If omitted, it will default to
n
. If there's already a column calledn
, it will usenn
. If there's a column calledn
andnn
, it'll usennn
, and so on, addingn
s until it gets a new name.