unique_or_levels: Unique or levels

View source: R/unique_or_levels.R

unique_or_levelsR Documentation

Unique or levels

Description

Abstract the differences between character vectors and factors.

Usage

unique_or_levels(x)

Arguments

x

A character vector or a factor.

Value

A character vector with the unique elements of x if it is a character vector, or the levels of x if it is a factor.

Author(s)

Michaja Pehl


pik-piam/quitte documentation built on April 26, 2024, 12:58 a.m.