null_blank_na {creditmodel}R Documentation

Encode NAs

Description

null_blank_na is the function to replace null ,NULL, blank or other missing vaules with NA.

Usage

null_blank_na(dat, miss_values = NULL, note = FALSE)

Arguments

dat

A data frame with x and target.

miss_values

Other extreme value might be used to represent missing values, e.g: -9999, -9998. These miss_values will be encoded to -1 or "missing".

note

Logical.Outputs info.Default is TRUE.

Value

A data.frame

Examples

datss = null_blank_na(dat = UCICreditCard[1:1000, ], miss_values =list(-1,-2))

[Package creditmodel version 1.3.0 Index]