split_by_class: Tibble Splitting Function for Binary Response

Description Usage Arguments

View source: R/downsample.R

Description

Takes a tibble with a binary response and then puts them in a list that categorizes one dataset as a majority case and the other as a minority case.

Usage

1
split_by_class(training_data, target.var.expr)

Arguments

training_data

a training data set

target.var.expr

an expression that refers to the binary response variable


KThompson0308/RUtilities documentation built on Dec. 8, 2019, 8:30 a.m.