Description Usage Arguments Value Examples
Wrapper function to score the mating of a single female to all males.
Apply this function to multiple females using the get_all_rankings
function.
This functions sorts the output dataframe by highest scoring male.
1 2 3 4 5 6 7 8 | rank_mates(
DB,
female,
males,
type = "all_alleles",
bonus = NULL,
weighted_alleles = NULL
)
|
DB |
RSQLite database generated by |
female |
Sample ID of the female to compare to the males. The Sample ID
must match the ones found in the |
males |
Sample IDs of the males to compare to a female. The Sample IDs
must match the ones found in the |
type |
The type of mating that is advantageous.
|
bonus |
Numeric value to increase mating score if the state of alleles
specified in |
weighted_alleles |
vector listing allele IDs to calculate the bonus. Must
specify |
dataframe
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.