apply_categorical_logic: apply_categorical_logic

View source: R/apply_categorical_logic.R

apply_categorical_logicR Documentation

apply_categorical_logic

Description

Apply categorical grouping logic

Usage

apply_categorical_logic(main_df, logic_df, unique_key_id, logic_type = "woe")

Arguments

main_df

A dataframe that you want to transform. Ensure that it has a unique field which will be represented in the unique_key_id

logic_df

A dataframe which provides the logic to apply to each variable

unique_key_id

A single attribute representing the unique key in the dataframe

logic_type

The logic to use to create either woe and/or grp variables. Options are c('woe','grp')

Value

A dataframe withe the unique_key_id field along with all transformed attributes (woe and/or grp). The original attributes will not be in this data frame. The only original variable that will be in this data frame is the unique_key_id field


cjodice10/eda documentation built on Feb. 7, 2023, 3:26 p.m.