pipe_remove_single_value_columns: Remove all columns that have only a single value

Description Usage Arguments Value

View source: R/feature_generation.R

Description

Remove all columns that have only a single value

Usage

1
2
pipe_remove_single_value_columns(train, na_function = function(x) {     F
  })

Arguments

train

The train dataset, as a data.frame or data.table. Data.tables may be changed by reference.

na_function

A function that returns true when a value is considered missing, and should be removed. Defaults to removing no values.

Value

A list containing the transformed train dataset and a trained pipe.


jeroenvdhoven/datapiper documentation built on July 14, 2019, 9:34 p.m.