rm_missing_outcome: Remove missing outcome values

View source: R/preprocess.R

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

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)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.