powered by
Remove missing outcome values
rm_missing_outcome(dataset, outcome_colname)
dataset with no missing outcomes
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
Zena Lapp, zenalapp@umich.edu
if (FALSE) { rm_missing_outcome(mikropml::otu_mini_bin, "dx") test_df <- mikropml::otu_mini_bin test_df[1:100, "dx"] <- NA rm_missing_outcome(test_df, "dx") }
Run the code above in your browser using DataLab