nDistinct: Number of Distinct Elements

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Count the number of distinct elements in a vector or a matrix.

Usage

1

Arguments

x

a vector or a matrix.

Value

A scalar giving te number of distinct elements in x.

Author(s)

Antoine Filipovic Pierucci

Examples

1
nDistinct(c(1, 3, 3, 5))

rmngb documentation built on May 29, 2017, 9:22 p.m.

Related to nDistinct in rmngb...