rm_static_cols: Remove columns which are dominated by one value

View source: R/preprocessing_removal.R

rm_static_colsR Documentation

Remove columns which are dominated by one value

Description

Remove columns which are dominated by one value

Usage

rm_static_cols(data, y, threshold = 1, verbose = FALSE)

Arguments

data

A data source, that is one of the major R formats: data.table, data.frame, matrix and so on.

y

A string that indicates a target column name.

threshold

A numeric value from [0,1] range, which indicates the maximum threshold of dominating values for column If feature has more dominating values it is going to be removed. By default set to 1, which indicates that all values are equal.

verbose

A logical value, if set to TRUE, provides all information about preprocessing process, if FALSE gives none.

Value

A list containing two objects:

  • `data` A dataset with deleted columns

  • `idx` The indexes of removed columns


ModelOriented/forester documentation built on June 6, 2024, 7:29 a.m.