count_se: tally/count standard interface.

Description Usage Arguments Details Value See Also Examples

View source: R/tally.R

Description

Add a new column named "n" with (optionally per-group) sums/counts.

Usage

1
count_se(x, groupingVars = NULL, wt = NULL, sort = FALSE)

Arguments

x

data.frame to tally/count

groupingVars

character vector of column names to group by.

wt

character optional column name containing row-weights (passed to count/tally)

sort

logical if TRUE sort result in descending order

Details

Note: dplyr::count, dplyr::add_count, dplyr::tally, and dplyr::add_tally are not S3 methods, so it may not be practical to re-dispatch seplyr calls to these dplyr implementations.

Value

.data with added column n, containing counts.

See Also

count

Examples

1
datasets::mtcars %.>% count_se(., groupingVars= c('cyl', 'gear'))

seplyr documentation built on Sept. 5, 2021, 5:12 p.m.