BuildFreqNbG {fst4pg} | R Documentation |
Convert the Freq and NbGamete tables into a list.
Description
The function builds a list where each element corresponds to a population present in both Freq and NbGametes (all other populations being discarded). Each element consists of a data.frame with 2 columns, Freq and NbGamete.
Usage
BuildFreqNbG(Freq, NbGamete)
Arguments
Freq |
A data.frame or matrix of frequencies where each row corresponds to a marker, each column corresponds to a population, |
NbGamete |
A data.frame or matrix of number of gametes where each row corresponds to a marker, and each column corresponds to a population |
Value
a list of data.frames, each corresponding to a population.
Examples
## Load the HGDP data
data(Freq);data(NbGamete)
FreqNbG <- BuildFreqNbG(Freq,NbGamete)
[Package fst4pg version 1.0.0 Index]