null_blank_na: Encode NAs

Description Usage Arguments Value Examples

View source: R/data_cleansing.R

Description

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

Usage

1
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

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

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.