# NOT RUN {
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))
fst1<-calc.fst(gpop,3)
# }
# NOT RUN {
gfile<-system.file("extdata", "example.genepop.txt",package = 'fsthet')
gpop<-my.read.gpop(gfile)
fst1<-calc.fst(gpop,3) #calculate fst for the first SNP
# }
Run the code above in your browser using DataLab