disCharToProb: Discrete characters to probabailites

Description Usage Arguments Value

View source: R/disCharToProb.R

Description

Converts discrete characters labels at each site to probabailites

Usage

1
disCharToProb(x, charLevels)

Arguments

x

either a matrix or a data.frame of allele values with each column being a species and each row being a site

levels

a vector of all possible values of the discrete allele label

Value

a list of allele probabilities with one matrix per species


ndukler/epiAllele documentation built on May 5, 2019, 4:50 p.m.