genos2mat: Convert genos loci into presance absence matrices

Description Usage Arguments Author(s)

Description

A matrix for each locus is constructed with n rows and c columns, where n is the number of genotype individuals, and c is the total number of observed alleles at a locus. Individual are surveyed for alleles and assigned 0 for an absence, 0.5 for a single presence (i.e. heterozygote), and 1 for double presence (i.e. homozygote).

Usage

1
genos2mat(mat, ip, na)

Arguments

mat

A template matrix

ip

A character vector of alleles (e.g. genos[,i,j]) for all genotyped individual.

na

An NA replacement template

Author(s)

Kevin Keenan


diveRsity documentation built on May 1, 2019, 10:30 p.m.