Learn R Programming

mikropml (version 1.6.1)

split_outcome_features: Split dataset into outcome and features

Description

Split dataset into outcome and features

Usage

split_outcome_features(dataset, outcome_colname)

Value

list of length two: outcome, features (as dataframes)

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).

Examples

Run this code
if (FALSE) {
split_outcome_features(mikropml::otu_mini_bin, "dx")
}

Run the code above in your browser using DataLab