Skip to contents

Returns number of unique values

Usage

lunique(x)

Arguments

x

(vector)

Examples

lunique(c(1, 1, 2, 2, 2, 3))
#> [1] 3