a_freq_list: Convert data frame of allele frequencies to nested lists
Description
List-izes the output of reference_allele_counts into a usable format for allelic_list
Usage
a_freq_list(D, pop_level = "collection")
Value
a_freq_list returns a list named by loci, each element of which is a matrix
containing that locus's allele count data. Rows in the matrix mark alleles, and columns collections
Arguments
D
the long-format dataframe of counts by collection, locus, and allele,
output by reference_allele_counts, to be made into a nested list
# Generate a list of individual genotypes by allele from# the alewife data's reference allele count tables example(reference_allele_counts)
ale_ac <- a_freq_list(ale_rac)