nPerGroup: Group a data.frame and count unique values

View source: R/nPerGroup.R

nPerGroupR Documentation

Group a data.frame and count unique values

Description

Grouping columns containing NAs are not considered.

Usage

nPerGroup(df, group, col)

Arguments

df

a data.frame or tibble

group

character(n) Character vector of name(s) of grouping columns

col

character(n) Name(s) of column(s) in which to count distinct values


HelenLindsay/AbNames documentation built on June 6, 2023, 1:18 p.m.