calc.actual.fst {fsthet} | R Documentation |
This calcualtes global Fsts from a genepop dataframe.
Description
This calcualtes global Fsts from a genepop dataframe. This does not include bootstrapping.
Usage
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
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)
[Package fsthet version 1.0.1 Index]