FeatureByTargetVariable: Displays a feature variable by a binary target variable

View source: R/DataUnderstanding.R

FeatureByTargetVariableR Documentation

Displays a feature variable by a binary target variable

Description

Displays a feature variable by a binary target variable

Usage

FeatureByTargetVariable(DataFrame, Feature, TargetVariable)

Arguments

DataFrame

data.frame. data.frame under investigation.

Feature

vector. Feature variable.

TargetVariable

factor. Binary target variable.

Examples

## mtcars
FeatureByTargetVariable(DataFrame = mtcars, Feature = "gear", TargetVariable = "am")
## Selected variables in data.frame:
Variables <- c("cyl", "gear", "vs")
for (i in Variables) {
    print(FeatureByTargetVariable(DataFrame = mtcars, Feature = i, TargetVariable = "am"))
}

masem-research/masemDataUnderstanding documentation built on May 5, 2022, 12:40 a.m.