satisfies_numadmix | R Documentation |
This function returns TRUE
if and only if the admixture graph satisfies all constraints on
the number of admixture events for the populations in admix_constraints
satisfies_numadmix(graph, admix_constraints)
graph |
An admixture graph |
admix_constraints |
A data frame with columns |
TRUE
if all admixture constraints are satisfied, else FALSE
## Not run:
# At least one admixture event for C, and none for D:
constrain_cd = tribble(
~pop, ~min, ~max,
'C', 1, NA,
'D', NA, 0)
satisfies_numadmix(random_admixturegraph(5, 2), constrain_cd)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.