Learn R Programming

Kmisc (version 0.5.0)

lu: Number of non-NA unique elements in a vector

Description

Returns the number of non-NA unique elements in a vector. A wrapper to length( unique( x[!is.na(x)], ... ) ). Primarily intended for interactive, not programmatic, use.

Usage

lu(x, ...)

Arguments

x
a vector
...
passed to unique