Learn R Programming

IBDLabels (version 1.1)

allStates: Conversion Table for all labelling schemes

Description

Conversion table for all numbering schemes: label, vector, lexicographic, and if there are 4 gametes jacquard15 and jacquard9.

Usage

allStates(ngam)

Arguments

ngam
Number of gametes

Value

A data.frame is returned with the following variables:$label : vector of all labels from 0 to maxlabel $vec : matrix of all state vectors (one per row) corresponding to labels. $lex : vector of lexicographic states for each labelif there are 4 gametes there is also$jaq9 : vector of un-phased jacquard states $jaq15 : vector of phased jacquard statesInvalid labels produce NA in the other columns.

Examples

Run this code

## create lookup matrix

allStates( ngam = 4 )

allStates( ngam = 5 )

Run the code above in your browser using DataLab