Closed zkamvar closed 9 years ago
Hi @zkamvar -- thanks very much for spotting this. I think there is much that could be improved in mmod
, both with adegenet2.0 functions and with a (I hope...) better programmer than I was when I first wrote it!
I will write up and test this, but want to create you as a contributor to the package in the DESCRIPTION. Is the email address in your github profile the best one to include?
:+1: Yes, that email is the best one.
In all of mmod's pairwise functions, you first split populations and then repool them for each calculation. Using the new
[pop = ]
accessor would be advantageous as it would prevent unnecessary repooling of the data.Example:
could be turned into:
This way, you could pass the table of combinations to
apply
: