Skip to contents

Trims whitespace, drops NA and empty strings, then returns the number of distinct remaining values.

Usage

.n_distinct_nonempty(x)

Arguments

x

A vector (typically character).

Value

Integer scalar.