
Split Data into Training and Test Sets
obtain_split_data.RdThis function loads an expression dataset, splits it into training and test sets while maintaining class balance, and optionally saves the resulting datasets as .Rda files. It also prints the class imbalance percentages for both the training and test sets to the console.
Usage
obtain_split_data(
directory_to_load,
file_name,
target_var,
directory_to_save = NULL,
verbose = TRUE
)