Learn R Programming

prabclus (version 2.3-4)

allele2zeroone: Converts alleleobject into binary matrix

Description

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

Usage

allele2zeroone(alleleobject)

Value

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

Arguments

alleleobject

object of class alleleobject as generated by alleleinit.

Examples

Run this code
  data(tetragonula)
  ta <- alleleconvert(strmatrix=tetragonula[21:50,])
  tai <- alleleinit(allelematrix=ta)
  allele2zeroone(tai)

Run the code above in your browser using DataLab