powered by
Split dataset into outcome and features
split_outcome_features(dataset, outcome_colname)
list of length two: outcome, features (as dataframes)
Data frame with an outcome variable and other columns as features.
Column name as a string of the outcome variable (default NULL; the first column will be chosen automatically).
NULL
if (FALSE) { split_outcome_features(mikropml::otu_mini_bin, "dx") }
Run the code above in your browser using DataLab