validateBinaryTargetLevel: Validate arguments given as binary target level

Description Usage Arguments Value

View source: R/helper_functions.R

Description

Helper function used to ensure that target binary class levels given by clients can be coerced to an integer and that the resulting integer is in {1, 2}.

Usage

1

Arguments

arg

argument to potentially be used as new target level

Value

Binary target level (as integer equal to 1 or 2)


zachmayer/caretEnsemble documentation built on Nov. 7, 2017, 5:01 a.m.