Learn R Programming

GDINA (version 2.9.4)

unique_only: Unique values in a vector

Description

Unique values in a vector

Usage

unique_only(vec)

Value

sorted unique values

Arguments

vec

a vector

See Also

Examples

Run this code

vec <- c(4,2,3,5,4,4,4)
unique_only(vec)
# see the difference from unique
unique(vec)

vec <- letters[1:5]
unique_only(vec)



Run the code above in your browser using DataLab