landscape.to.rtheta {kernelPop} | R Documentation |
This function converts Rmetasim landscapes into a format that can be analyzed with ANOVA to calculate Weir's theta.
genin <- landscape.to.rtheta(Rland,numi)
Rland |
the Rmetasim landscape object |
numi |
number of individuals to sample at random from each population/habitat. The default value of 0 takes all individuals in each population. CAUTION this could take a long time. |
A matrix with columns representing the population, class, individual, locus, allelic position, allele id.
popstruct