BuildFreqNbG: Convert the Freq and NbGamete tables into a list.

View source: R/FstBattia.R

BuildFreqNbGR 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)

fst4pg documentation built on July 4, 2022, 1:06 a.m.