split_outcome_features: Split dataset into outcome and features

View source: R/utils.R

split_outcome_featuresR Documentation

Split dataset into outcome and features

Description

Split dataset into outcome and features

Usage

split_outcome_features(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

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

Examples

## Not run: 
split_outcome_features(mikropml::otu_mini_bin, "dx")

## End(Not run)

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