distinct_ids: Count individual IDs

View source: R/distinct_ids.R

distinct_idsR Documentation

Count individual IDs

Description

Counts the number of unique ids within a dataframe

Usage

distinct_ids(df, id = id)

Arguments

df

Dataframe.

id

Column which is the id, default = id.

Value

Number of individual ids

Examples

mtcars$id <- 1:32
distinct_ids(mtcars)
#32

bsurial/bernr documentation built on Nov. 7, 2022, 1:41 a.m.