Learn R Programming

euroMix (version 1.1.1)

db2: Allele database.

Description

Norwegian database for 10 SGM Plus markers.

Usage

data(db2)

Arguments

Format

A data frame with 119 observations on the following 3 variables.
Marker
a factor with levels corresponding to name of markers
Allele
a numeric vector denoting allele
Frequency
a numeric vector in (0,1)

Source

Andreassen et al. (2007).

Details

The format is convenient for R.

Examples

Run this code
data(db2)
#Checks that frequencies add to 1
lapply(split(db2$Frequency,db2$Marker),sum)
#Finds number of alleles for all markers
unlist(lapply(split(db2$Frequency,db2$Marker),length))
#A closer look at the marker TH01
TH01=db2[db2$Marker=="TH01",]
barplot(TH01$Frequency)

Run the code above in your browser using DataLab