splitBy: Split by User-defined Group

Description Usage Arguments Value

Description

splitBy builds a training set and validation set by placing all samples that have the include annotation in the specified colBy column in the training set. The remaining samples get placed in the validation set. This split is not random.

Usage

1
splitBy(object, colBy, include)

Arguments

object

An ExprsArray object to split.

colBy

A character string. Specifies the column used to split the data.

include

A character vector. Specifies which annotations in colBy to include in the training set.

Value

Returns a list of two ExprsArray objects.


exprso documentation built on May 1, 2019, 7:11 p.m.