generate.comps_datalist: generate.comps_datalist

View source: R/ranger_crossRF_util.R

generate.comps_datalistR Documentation

generate.comps_datalist

Description

To generate sub-datasets and sub-metadata by pairing one level and each of other levels of the specified category in the metadata.

Usage

generate.comps_datalist(df, f, comp_group)

Arguments

df

Training data: a data.frame.

f

A factor in the metadata with at least two levels (groups).

comp_group

A string indicates the group in the f

Value

A object of list with elements: a list of data.frame and a list of factor

Author(s)

Shi Huang


shihuang047/crossRanger documentation built on Feb. 7, 2023, 10:03 p.m.