genotype.list {MasterBayes} | R Documentation

## Genotype Objects for all Loci

### Description

Creates a `list` of `genotype` objects from a `matrix` or `data.frame` of multilocus genotypes.

### Usage

    genotype.list(G, marker.type="MS", ...)

### Arguments

`G` | matrix or data.frame of multilocus genotypes with individuals down the rows and loci across columns. Adjacent columns are taken to be the same locus
`marker.type` | optional "MS" or "AFLP" for codominant or dominant markers respectively
`...` | further arguments to be passed

### Value

list of `genotype` objects for all loci

### Author(s)

Jarrod Hadfield j.hadfield@sheffield.ac.uk

### See Also

`genotype`

### Examples

      data(WarblerG)

      G<-genotype.list(WarblerG)
      summary(G[[1]])

[Package MasterBayes version 2.0 Index]