b_count: Count observations by group

Description Usage Arguments Value Author(s) See Also Examples

View source: R/count.R

Description

Mimics dplyr::count using base R and rlang

Usage

1
2
3
4
5
6
7
b_count(x, ..., wt = NULL, sort = FALSE)

## Default S3 method:
b_count(x, ..., wt = NULL, sort = FALSE)

## S3 method for class 'split_df'
b_count(x, ..., wt = NULL, sort = FALSE)

Arguments

x

data.frame

...

variables to group by

wt

numeric, weights to count by, Default: NULL

sort

boolean, if TRUE will sort output in descending order of n, default = FALSE

Value

data.frame

Author(s)

Jonathan Sidi

See Also

quotation

Examples

1
2
3
airquality%>%
b_count(Month,Temp)%>%
head()

yonicd/noplyr documentation built on Feb. 22, 2020, 11:26 a.m.