Learn R Programming

gRain (version 1.3-2)

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
# NOT RUN {
## 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