allStates: Conversion Table for all labelling schemes

Description Usage Arguments Value Author(s) Examples

View source: R/allStates.R

Description

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

Usage

1
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 label

if there are 4 gametes there is also

$jaq9 : vector of un-phased jacquard states $jaq15 : vector of phased jacquard states

Invalid labels produce NA in the other columns.

Author(s)

Fiona Grimson

Examples

1
2
3
4
5
## create lookup matrix

allStates( ngam = 4 )

allStates( ngam = 5 )


IBDlabels documentation built on May 21, 2017, 3:27 a.m.
Search within the IBDlabels package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.