tally_se: tally/count standard interface.

View source: R/tally.R

tally_seR Documentation

tally/count standard interface.

Description

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

Usage

tally_se(x, wt = NULL, sort = FALSE)

Arguments

x

data.frame to tally/count

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

tally

Examples



datasets::mtcars %.>% tally_se(.)


datasets::mtcars %.>% tally_se(., wt = "cyl")


WinVector/seplyr documentation built on Aug. 26, 2022, 12:01 p.m.