unique_counts: Counts and proportions for each unique row in a data frame or...

Description Usage Arguments Value Examples

View source: R/extradplyr.R

Description

counts all unique row occurrences, returns a data frame with a count for each row

Usage

1
unique_counts(data, include_percent = TRUE, .checkAssertions = TRUE)

Arguments

data

a data frame or tibble type object

include_percent

whether a column should be added to show group percentages

.checkAssertions

private variable used to check function assertions (if first in chain)

Value

a grouped data frame of unique rows with column count ( and percent )

Examples

1
2
unique_counts(cars)
unique_counts(iris, include_percent = TRUE)

duncankmckinnon/OKdplyr documentation built on Nov. 30, 2020, 1:13 a.m.