Learn R Programming

matchingR (version 2.0.0)

sortIndex: Sort indices of a matrix within a column

Description

Within each column of a matrix, this function returns the indices of each element in descending order

Usage

sortIndex(u)

Value

a matrix with sorted indices (the agents' ordinal preferences)

Arguments

u

is the input matrix with cardinal preferences