View source: R/unique_or_levels.R
unique_or_levels | R Documentation |
Abstract the differences between character vectors and factors.
unique_or_levels(x)
x |
A character vector or a factor. |
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.
Michaja Pehl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.