df_get_feature_bins: Create bins for numeric features

View source: R/df_get_feature_bins.R

df_get_feature_binsR Documentation

Create bins for numeric features

Description

This function takes a matrix and returns a matrix with the designated number of bins for the features. Depending on the range and distribution of the numeric feature, this function may return less than the designated number of bins.

Usage

df_get_feature_bins(data_, features_, dataType = "numeric")

Arguments

data_

A data.frame containing features that need to be binned.

features_

A vector of the numeric feature names to be binned.

dataType

"numeric" or "categorical"

Details

NOTE: This function currently only supports NUMERIC and/or CHARACTER data types. If you have other types of data, please filter them out before passing to the function.

Value

A data.frame containing the feature name, bin number, min value, and max value


BrandonRCopeland/DataScience documentation built on Oct. 14, 2023, 9:45 a.m.