This function computes the GaleShapley algorithm and finds a solution to the stable marriage problem.
● Data Source:
CranContrib
● Keywords:
● Alias: galeShapley, galeShapley.marriageMarket
●
0 images

reprow
(Package: matchingR) :
Repeat each row of a matrix n times
This function repeats each row of a matrix n times
● Data Source:
CranContrib
● Keywords:
● Alias: reprow
●
0 images

roommate.validate
(Package: matchingR) :
Input validation for onesided markets
This function parses and validates the arguments for the function roommate . It returns the validates arguments. This function is called as part of roommate . Only one of the arguments needs to be provided.
● Data Source:
CranContrib
● Keywords:
● Alias: roommate.validate
●
0 images

These functions are provided for compatibility with older version of the matchingR package. Eventually, these functions will be removed.
● Data Source:
CranContrib
● Keywords:
● Alias: checkPreferenceOrder, checkPreferenceOrderOnesided, checkStability, checkStabilityRoommate, checkStabilityTopTradingCycle, galeShapleyMatching, many2one, matchingRdeprecated, matchingRdeprecatedpackage, one2many, one2one, onesided, stableRoommateMatching, topTradingCycle, validateInputs, validateInputsOneSided
●
0 images

sortIndexOneSided
(Package: matchingR) :
Ranks elements with column of a matrix, assuming a onesided market.
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 singlesided market.
● Data Source:
CranContrib
● Keywords:
● Alias: sortIndexOneSided
●
0 images

This function checks if a given matching is stable for a particular set of preferences. This stability check can be applied to both the stable marriage problem and the college admission problem. The function requires preferences to be specified in cardinal form. If necessary, the function rankIndex can be used to turn ordinal preferences into cardinal utilities.
● Data Source:
CranContrib
● Keywords:
● Alias: galeShapley.checkStability
●
0 images

This function provides an R wrapper for the C++ backend. Users should not call this function directly and instead use galeShapley.marriageMarket or galeShapley.collegeAdmissions .
● Data Source:
CranContrib
● Keywords:
● Alias: cpp_wrapper_galeshapley
●
0 images

roommate
(Package: matchingR) :
Compute matching for onesided markets
This function computes the Irving (1985) algorithm for finding a stable matching in a onesided matching market.
● Data Source:
CranContrib
● Keywords:
● Alias: roommate
●
0 images

This function parses and validates the arguments that are passed on to the GaleShapley Algorithm. In particular, it checks if userdefined preference orders are complete and returns an error otherwise. If userdefined orderings are given in terms of R indices (starting at 1), then these are transformed into C++ indices (starting at zero).
● Data Source:
CranContrib
● Keywords:
● Alias: galeShapley.validate
●
0 images

This function computes the GaleShapley algorithm and finds a solution to the college admissions problem. In the studentoptimal college admissions problem, n students apply to m colleges, where each college has s slots.
● Data Source:
CranContrib
● Keywords:
● Alias: galeShapley.collegeAdmissions
●
0 images
