rm_missing_outcome {mikropml} | R Documentation |
Remove missing outcome values
Description
Remove missing outcome values
Usage
rm_missing_outcome(dataset, outcome_colname)
Arguments
dataset |
Data frame with an outcome variable and other columns as features. |
outcome_colname |
Column name as a string of the outcome variable
(default |
Value
dataset with no missing outcomes
Author(s)
Zena Lapp, zenalapp@umich.edu
Examples
## 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)
[Package mikropml version 1.6.1 Index]