allelecount.landscape {rmetasim}R Documentation

Calculate allele numbers (frequency in the statistical sense) at each locus in each population

Description

Calculate allele counts

Usage

  hetmat <- exp.het.landscape(rland,tbl.out=F)

Arguments

rland the Rmetasim landscape object
tbl.out return as a (three-dimensional) table if TRUE. If FALSE, return as a dataframe with categorical variables denoting the locus, population and allele.

Value

Depends on the value of tbl.out. See above.

See Also

allelefreq.landscape, obs.het.landscape, exp.het.landscape, Fwright.landscape, Fst.landscape

Examples

  exampleland <- new.example.landscape()
  exampleland <- simulate.landscape(exampleland, 4)
  allelefreq.landscape(exampleland,tbl.out=TRUE)
  allelefreq.landscape(exampleland,tbl.out=FALSE)
  rm(exampleland)

[Package Contents]