Learn R Programming

mikropml (version 1.6.1)

rm_missing_outcome: Remove missing outcome values

Description

Remove missing outcome values

Usage

rm_missing_outcome(dataset, outcome_colname)

Value

dataset with no missing outcomes

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 NULL; the first column will be chosen automatically).

Author

Zena Lapp, zenalapp@umich.edu

Examples

Run this code
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