Skip to contents

Description

Usage

sort_uniq(vec)

Arguments

vec

A vector that can be reasonably sorted

Value

A sorted vector of unique values in the vector

Details

A Shorthand for unique() %>% sort()

Examples

vec <- sample(1:10, size = 20, replace=TRUE)

vec
#>  [1]  7  5  6  9  6 10  5  2  1  4  8  6  1  6  2  3  1  9  2  5

sort_uniq(vec)
#>  [1]  1  2  3  4  5  6  7  8  9 10