SplitGt: A function to split a genotype matrix two genotype matrix...

Description Usage Arguments Value Examples

Description

A function to split a genotype matrix two genotype matrix according to a logical vector

Usage

1
SplitGt(gt, survival, verbose = TRUE)

Arguments

gt

The original genotype matrix to split

survival

A logical vector for splitting the data into two gt matrix. The length of the vector must match the number of samples in the gt matrix.

verbose

Logical. If TRUE (default), report status of the process along the execution.

Value

A list of genotype matrix. list$alive is the gt matrix containing the samples which position corresponds with a TRUE in the survival vector. The other samples are contained in list$dead as an other gt matrix

Examples

1
2
3
4
5
## Not run: 
SplitGt(gt, c(TRUE, TRUE, FALSE, ...))
SplitGt(gt, survival.vector, verbose = FALSE)

## End(Not run)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.