geno.cvt1 {simer}R Documentation

Genotype code convertor 1

Description

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

Usage

geno.cvt1(pop.geno)

Arguments

pop.geno

genotype matrix of (0, 1).

Details

Build date: Nov 14, 2018 Last update: Apr 28, 2022

Value

genotype matrix of (0, 1, 2).

Author(s)

Dong Yin

Examples


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


[Package simer version 0.9.0.4 Index]