Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sortIndexOneSided

Ranks elements with column of a matrix, assuming a one-sided market.


Description

Returns the rank of each element with each column of a matrix. So, if row 34 is the highest number for column 3, then the first row of column 3 will be 34 – unless it is column 34, in which case it will be 35, to adjust for the fact that this is a single-sided market.

Usage

sortIndexOneSided(u)

Arguments

u

A matrix with agents' cardinal preferences. Column i is agent i's preferences.

Value

a matrix with the agents' ordinal preferences


matchingR

Matching Algorithms in R and C++

v1.3.2
GPL (>= 2)
Authors
Jan Tilly, Nick Janetos
Initial release
2020-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.