mendel: Mendelian segregation

View source: R/cptable_special.R

mendelR Documentation

Mendelian segregation

Description

Generate conditional probability table for Mendelian segregation.

Usage

mendel(allele, names = c("child", "father", "mother"))

Arguments

allele

A character vector.

names

Names of columns in dataframe.

Note

No error checking at all on the input.

Examples

## Inheritance of the alleles "y" and "g"

men <- mendel(c("y","g"), names=c("ch", "fa", "mo"))
men


gRain documentation built on Nov. 21, 2023, 5:07 p.m.