Description Usage Arguments Value Examples
View source: R/splitTestTrain_resampling.R
Split samples into train/test
1 | splitTestTrain(pheno_DF, pctT = 0.7, verbose = FALSE)
|
pheno_DF |
(data.frame) patient information
Must contain the following columns:
1. ID: (char) patient IDs
2. STATUS: (char) patient classes. Values not equal to |
pctT |
(numeric between 0 and 1) Fraction of patients to randomly assign to the training set. The remainder will be used for blind test set |
verbose |
(logical) print messages |
(char) vector of length nrow(pheno_DF)
, with values of
'TRAIN' or 'TEST'. The order corresponds to pheno_DF; a patient labelled
'TRAIN' has been assigned to the training set, and one labelled 'TEST'
as been assigned to the test set.
1 2 | data(pheno)
x <- splitTestTrain(pheno)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.