splitDatatoTrainTest: MLmodels util function

View source: R/mod_MLmodels_utils.R

splitDatatoTrainTestR Documentation

MLmodels util function

Description

To split list of omic data in data train and data test subsets.

Usage

splitDatatoTrainTest(MultiOmicData, freq = 0.8)

Arguments

MultiOmicData

list of your data blocks

freq

Split proportion of train samples

Value

Return two data sets: first to train model and second to assess it.

Examples

data("omic2", package = "multiSight")
splitData <- splitDatatoTrainTest(omic2, 0.8)
data.train <- splitData$data.train
data.test <- splitData$data.test


Fjeanneret/multiSight documentation built on April 6, 2022, 7:59 a.m.