allele_counts: Returns counts of alleles at a locus by population

View source: R/allele_counts.R

allele_countsR Documentation

Returns counts of alleles at a locus by population

Description

Takes a locus and set of populations and returns matrix of allele counts

Usage

allele_counts(x, locus, stratum = "Population")

Arguments

x

A data.frame object with loci and stratum in it.

locus

The name of the locus to use

stratum

The stratum to partition by.

Value

A matrix where each row is a strata and each column is a count of alleles

Author(s)

Rodney J. Dyer


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.