Learn R Programming

dataquieR (version 2.0.1)

util_order_by_order: Get the order of a vector with general order given in some other vector

Description

Get the order of a vector with general order given in some other vector

Usage

util_order_by_order(x, order, ...)

Arguments

x

the vector

order

the "order vector

...

additional arguments passed to order

Examples

Run this code
if (FALSE) {
util_order_by_order(c("a", "b", "a", "c", "d"), letters)
}

Run the code above in your browser using DataLab