landscape.allelefreq: Calculate allele frequencies at each locus in each population

Description Usage Arguments Value See Also Examples

Description

Calculate allele frequencies

Usage

1
  hetmat <- landscape.allelefreq(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

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

Examples

1
2
3
4
5
#  exampleland <- landscape.new.example()
#  exampleland <- landscape.simulate(exampleland, 4)
#  landscape.allelefreq(exampleland,tbl.out=TRUE)
#  landscape.allelefreq(exampleland,tbl.out=FALSE)
#  rm(exampleland)

stranda/kernelPop2 documentation built on March 30, 2020, 5:37 a.m.