Skip to contents

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