Learn R Programming

explore (version 1.3.4)

count_pct: Adds percentage to dplyr::count()

Description

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

Usage

count_pct(data, ...)

Value

Dataset

Arguments

data

A dataset

...

Other parameters passed to count()

Examples

Run this code
count_pct(iris, Species)

Run the code above in your browser using DataLab