landscape.to.rtheta {kernelPop}R Documentation

Converts genetic marker data in a landscape into a format suitable for analysis using ANOVA

Description

This function converts Rmetasim landscapes into a format that can be analyzed with ANOVA to calculate Weir's theta.

Usage

  genin <- landscape.to.rtheta(Rland,numi)

Arguments

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.

Value

A matrix with columns representing the population, class, individual, locus, allelic position, allele id.

See Also

popstruct


[Package kernelPop version 0.9.09 Index]