SplitVect: A function to split a vector into two vectors according to a...

Description Usage Arguments Value Examples

Description

A function to split a vector into two vectors according to a survival logical vector

Usage

1
SplitVect(vect, survival, verbose = TRUE)

Arguments

vect

The original vector to split

survival

A logical vector for splitting the data into two vectors. The length of survival must match the length of vector

verbose

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

Value

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

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.