uniqueLength: Length of unique elements in a vector

Description Usage Arguments Value Author(s) See Also Examples

View source: R/vector.R

Description

Length of unique elements in a vector

Usage

1
uniqueLength(x, incomparables = FALSE)

Arguments

x

A vector

incomparables

See unique

Value

An integer indicating the number of unique elements in the input vector

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

See Also

unique

Examples

1
2
3
4
5
test.vec1 <- c("HSV", "FCB", "BVB", "HSV", "BVB")
uniqueLength(test.vec1)

test.vec2 <- c(1L, 2L, 3L, 5L, 3L, 4L, 2L, 1L, 5L)
ulen(test.vec2)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.