Learn R Programming

tcpl (version 1.2.2)

lu: Abbreviation for length(unique(x))

Description

lu takes a logical vector, x, and returns length(unique(x)).

Usage

lu(x)

Arguments

x
A logical

Value

The unique of the TRUE values in x

See Also

unique, which

Other tcpl abbreviations: is.odd, lw, sink.reset