Skip to contents

Get number of unique values per features

Usage

uniquevalsperfeat(x, excludeNA = FALSE)

Arguments

x

matrix or data frame input

excludeNA

Logical: If TRUE, exclude NA values from unique count.

Value

Vector, integer of length NCOL(x) with number of unique values per column/feature

Author

EDG

Examples

if (FALSE) { # \dontrun{
uniquevalsperfeat(iris)
} # }