frequency_matrix: Create a matrix of allele frequencies for a single locus...

Description Usage Arguments Value Note Author(s)

View source: R/frequency_matrix.R

Description

This is a quick translation of locus data to a tabular stratum format.

Usage

1
frequency_matrix(x, stratum = "Population", loci = NULL)

Arguments

x

A data.frame with locus and strata column(s)

stratum

The column name to use as the partitioning

loci

The name of the locus to use

Value

A matrix (rows are strata, columns are alleles) of allele frequencies

Note

This function just reshapes the data.frame from frequencies.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu


MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.