plotrr (version 1.0.0)

lengthunique: Calculates the number of unique values in a vector

Description

Calculates the number of unique values in a vector.

Usage

lengthunique(x)

Arguments

x

A vector.

Value

The number of unique values in a vector.

Examples

Run this code
# NOT RUN {
x <- rep(c(1:10), 10)
lengthunique(x)
# }

Run the code above in your browser using DataLab