allele2zeroone: Converts alleleobject into binary matrix

Description Usage Arguments Value Author(s) Examples

View source: R/alleletest.R

Description

Converts alleleobject with codominant markers into binary matrix with a column for each marker.

Usage

1

Arguments

alleleobject

object of class alleleobject as generated by alleleinit.

Value

A 0-1-matrix with individuals as rows and markers (alleles) as columns.

Author(s)

Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche

Examples

1
2
3
4
  data(tetragonula)
  ta <- alleleconvert(strmatrix=tetragonula[21:50,])
  tai <- alleleinit(allelematrix=ta)
  allele2zeroone(tai)

prabclus documentation built on May 29, 2017, 7:55 p.m.