identify_CR: Function to find out, if the Task is Classification or...

View source: R/identify_CR.R

identify_CRR Documentation

Function to find out, if the Task is Classification or Regression

Description

Function to find out, if the Task is Classification or Regression

Usage

identify_CR(df, target_var, classif_threshold = 6)

Arguments

df

input data frame

target_var

target variable

classif_threshold

max number of unique values for detecting a classification

Value

returns a string of 'regr' or 'classif'

Examples

identify_CR(mtcars, "mpg")
identify_CR(iris, 5)


el-mrt/auto-statistics documentation built on March 19, 2022, 1:57 p.m.