util_sort_by_order: Sort a vector by order given in some other vector

View source: R/util_sort_by_order.R

util_sort_by_orderR Documentation

Sort a vector by order given in some other vector

Description

Sort a vector by order given in some other vector

Usage

util_sort_by_order(x, order, ...)

Arguments

x

the vector

order

the "order vector

...

additional arguments passed to sort

Examples

## Not run: 
util_sort_by_order(c("a", "b", "a", "c", "d"), letters)

## End(Not run)

dataquieR documentation built on July 26, 2023, 6:10 p.m.