check_outcome_value {mikropml}R Documentation

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)

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

outcome value

Author(s)

Zena Lapp, zenalapp@umich.edu

Kelly Sovacool, sovacool@umich.edu

Examples

## Not run: 
check_outcome_value(otu_small, "dx", "cancer")

## End(Not run)

[Package mikropml version 1.6.1 Index]