rm_missing_outcome | R Documentation |
Remove missing outcome values
rm_missing_outcome(dataset, outcome_colname)
dataset |
Data frame with an outcome variable and other columns as features. |
outcome_colname |
Column name as a string of the outcome variable
(default |
dataset with no missing outcomes
Zena Lapp, zenalapp@umich.edu
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.