calc.actual.fst: This calcualtes global Fsts from a genepop dataframe.

Description Usage Arguments Value Examples

Description

This calcualtes global Fsts from a genepop dataframe. This does not include bootstrapping.

Usage

1
calc.actual.fst(df, fst.choice="fst")

Arguments

df

Provide the genepop dataframe (from my.read.genepop).

fst.choice

Specify which type of fst calculation should be used. See fst.options.print for the choices.

Value

fsts

This returns a dataframe with Locus, Ht, and Fst characters.

Examples

1
2
3
4
5
6
7
8
9
  gpop<-data.frame(popinfo=c(rep("POP 1", 20),rep("POP 2", 20)),ind.names=c(1:20,1:20),
    loc0=sample(c("0101","0102","0202"),40,replace=TRUE))
  fsts<-calc.actual.fst(gpop)
  ## Not run: 
    gfile<-system.file("extdata", "example.genepop.txt",package = 'fsthet')
    gpop<-my.read.genepop(gfile)
    fsts<-calc.actual.fst(gpop)
  
## End(Not run)

fsthet documentation built on May 2, 2019, 7:55 a.m.