View source: R/DataUnderstanding.R
FeatureByTargetVariable | R Documentation |
Displays a feature variable by a binary target variable
FeatureByTargetVariable(DataFrame, Feature, TargetVariable)
DataFrame |
data.frame. data.frame under investigation. |
Feature |
vector. Feature variable. |
TargetVariable |
factor. Binary target variable. |
## 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")) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.