sort_index: sort_index

Description Usage Arguments Value Author(s) Examples

View source: R/interfaces.R

Description

returns indexes associated to the sorted values of the parameter vector.

Usage

1
sort_index(vec, order = 0)

Arguments

vec

vector to be sorted.

order

if 0, ascending order, if 1, descending order.

Value

indexes associated to the sorted input vector.

Author(s)

Pierrick Bruneau

Examples

1
2
temp <- rnorm(10)
temp2 <- sort_index(temp)

VBmix documentation built on May 30, 2017, 2:34 a.m.

Related to sort_index in VBmix...