Learn R Programming

mikropml (version 1.6.1)

check_outcome_value: Check that the outcome variable is valid. Pick outcome value if necessary.

Description

Check that the outcome variable is valid. Pick outcome value if necessary.

Usage

check_outcome_value(dataset, outcome_colname)

Value

outcome value

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

Kelly Sovacool, sovacool@umich.edu

Examples

Run this code
if (FALSE) {
check_outcome_value(otu_small, "dx", "cancer")
}

Run the code above in your browser using DataLab