# NOT RUN {
# for simulating a tree with `rtree`
library(ape)
# a typical, non-trivial example
# number of tip subpopulations
k_subpops <- 3
# simulate a random tree
tree_subpops <- rtree( k_subpops )
# coancestry matrix of subpopulations
coancestry <- coanc_tree( tree_subpops )
# }
Run the code above in your browser using DataLab