nUnique: Number of Unique Values

View source: R/nUnique.R

nUniqueR Documentation

Number of Unique Values

Description

Number of Unique Values

Usage

nUnique(x)

Arguments

x

R object that function unique can be applied on

Value

Number of unique values in x (integer)

Examples

nUnique(1:3)
nUnique(c(1, 1, 2))

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.