Skip to contents

Convenience for building dropdown/filter option lists from a column: sorted, unique, with NA dropped. Returns an empty character vector for NULL/empty input (serializes as [], the right shape for an empty list).

Usage

aurora_unique(x)

Arguments

x

A vector, or NULL.

Value

The sorted unique non-NA values.

Examples

aurora_unique(c("b", "a", NA, "a"))
#> [1] "a" "b"