bigt: Genotype transportor

View source: R/simer.Genotype.r

bigtR Documentation

Genotype transportor

Description

Transport genotype matrix.

Usage

bigt(pop.geno, ncpus = 0)

Arguments

pop.geno

genotype matrix of (0, 1).

ncpus

the number of threads used, if NULL, (logical core number - 1) is automatically used.

Details

Build date: Jan 28, 2025 Last update: Jan 29, 2025

Value

genotype matrix of (0, 1, 2).

Author(s)

Dong Yin

Examples


library(bigmemory)
options(bigmemory.typecast.warning=FALSE)
pop.geno <- matrix(sample(c(0, 1), 16, replace = TRUE), 4, 4)
pop.geno[]
bigmat <- bigt(pop.geno)
bigmat[]
pop.geno <- as.big.matrix(pop.geno, type = 'char')
bigmat <- bigt(pop.geno)
bigmat[]


simer documentation built on April 3, 2025, 9:24 p.m.