gen_tibble
to a data.frame compatible with hierfstat
gt_as_hierfstat.Rd
This function converts a gen_tibble
to a data.frame formatted
to be used by hierfstat
functions.
gt_as_hierfstat(x)
a gen_tibble
, with population coded as 'population'
a data.frame with a column 'pop' and further column representing the genotypes (with alleles recoded as 1 and 2)