Closed Carlo86 closed 9 years ago
Yep, should be simple enough. Will have a look.
Something like this should work:
tapply(apply(tab(x, freq=TRUE),2,mean, na.rm=TRUE), locFac(x), function(e) sort(e,decreasing=TRUE)[2])
with x
being your genind
I had forgotten that there is a isPoly
function. Added anyway as of
090c998a2a9
Hi all,
I would like to calculate the minor allele frequency for my data.