getcrosstabledf: Get Cross Table as customized data.frame

Description Usage Arguments Value

Description

When training model or examining features, one trick is to check the cross table of one feature and the label column. Too lazy to do this every time.

Usage

1
getcrosstabledf(df, feature, v_label, breaks = 20, useNA = "ifany")

Arguments

v_label

a lable vector

breaks

bar to avoid features with too many unique values, if exceed the bar, cut the feature to n==breaks categories.

v_feature

a feature vector

Value

a data.frame


sunsiyu/featurer documentation built on May 30, 2019, 8:39 p.m.