uniqueValues: summaryFunction for unique values

Description Usage Arguments Value See Also Examples

View source: R/uniqueValues.R

Description

A summaryFunction type function, intended to be called from summarize to be called from summarize, which counts the number of unique (excluding NAs) values in a variable.

Usage

1

Arguments

v

A variable (vector).

...

Not in use.

Value

An object of class summaryResult with the following entries: $feature ("No. unique values") and $result (the number of unique values in v).

See Also

summaryFunction, summarize, summaryResult, allSummaryFunctions

Examples

1
uniqueValues(c(1:3, rep(NA, 10), Inf, NaN))

dataReporter documentation built on Nov. 11, 2021, 9:06 a.m.