mendel: Mendelian segregation

Description Usage Arguments Note Examples

View source: R/cptable-special.R

Description

Generate conditional probability table for mendelian segregation.

Usage

1
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

1
2
3
4
## Inheritance of the alleles "y" and "g"

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

DataSciBurgoon/gRain documentation built on March 25, 2020, 12:02 a.m.