Learn R Programming

gRain (version 1.4.5)

mendel: 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.

Examples

Run this code
## Inheritance of the alleles "y" and "g"

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

Run the code above in your browser using DataLab