collapseMat: Collapse two genotype matrices, column by column

Description Usage Arguments Value Author(s)

Description

Each column is assummed to be the genotype for a SNP. The two genotype matrices should have the same size.

Usage

1
2
collapseMat(m1, m2, collapse_matrix = matrix(c(0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L,
  0L, 1L, 0L, 3L, 0L, 1L, 3L, 3L), 4, 4))

Arguments

m1

first genotype matrix

m2

second genotype matrix

collapse_matrix

collapsed genotype matrix

Value

collapsed genotyp matrix

Author(s)

kaiyin


CollapsABEL documentation built on May 1, 2019, 7:28 p.m.