rank_all_mates: Rank all mates

Description Usage Arguments Value Examples

View source: R/rank_all_mates.R

Description

This function takes the output of get_all_rankings and ranks all possible matings so that the sum of the score of all mate pairings is optimized.
This function uses a permutation without replacement and makes a matrix of the size of all possibilities. It is not recommended to use more than 10x10 samples.

Usage

1
rank_all_mates(females, males, ranked_list, output_head = 5)

Arguments

females

Vector of sample IDs of the females to compare to the males. The Sample IDs must match the ones found in the DB.

males

Vector of sample IDs of the males to compare to the females. The Sample IDs must match the ones found in the DB.

ranked_list

List output from get_all_rankings

Output_head

Integer value for the top number of mating pairings. Default: top 5 mating pairings

Value

Dataframe

Examples

1
2
3
4
5
6
## Not run: 
all_mates <- rank_all_mates(DB = DBs, female = females,
                              males = males, type = "all_alleles",
                              bonus=NULL, weighted_alleles=NULL)

## End(Not run)

danagibbon/MultifacitedChoice documentation built on Dec. 31, 2020, 11:10 p.m.