count_pct: Adds percentage to dplyr::count()

View source: R/tools.R

count_pctR Documentation

Adds percentage to dplyr::count()

Description

Adds variables total and pct (percentage) to dplyr::count()

Usage

count_pct(data, ...)

Arguments

data

A dataset

...

Other parameters passed to count()

Value

Dataset

Examples

count_pct(iris, Species)

explore documentation built on Sept. 11, 2024, 7:40 p.m.