nunique: How Many Unique Values?

View source: R/PCSmisc.R

nuniqueR Documentation

How Many Unique Values?

Description

Returns the number of unique values in a vector.

Usage

nunique(x)

Arguments

x

A vector.

Value

An integer equal to length(unique(x)).

Author(s)

Benjamin Rich <mail@benjaminrich.net>


benjaminrich/PCSmisc documentation built on Feb. 11, 2024, 9:25 p.m.