geno.cvt2 {simer}R Documentation

Genotype code convertor 2

Description

Convert genotype matrix from (0, 1, 2) to (0, 1).

Usage

geno.cvt2(pop.geno)

Arguments

pop.geno

genotype matrix of (0, 1, 2).

Details

Build date: Jul 11, 2020 Last update: Apr 28, 2022

Value

genotype matrix of (0, 1).

Author(s)

Dong Yin

Examples


SP <- param.geno(pop.marker = 1e4, pop.ind = 1e2, incols = 1)
SP <- genotype(SP)
geno1 <- SP$geno$pop.geno$gen1
geno2 <- geno.cvt2(geno1)
geno1[1:6, 1:2]
geno2[1:6, 1:4]


[Package simer version 0.9.0.4 Index]