Title

uniq -- Unique combinations of variables

Syntax

uniq varelist [if] [in] [ , count ]

Description

For the specified varelist, uniq counts the number of distinct value-combinations in the dataset. It can be used with the by prefix.

If count is specified, the total number of records will be displayed as well.

uniq does not count missing values.

Examples

. uniq firstname lastname

. uniq name if female

. bysort state: uniq county