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/phyloGLM documentation built on Sept. 25, 2019, 9:17 p.m.