tdmPreNAroughfix: Replace <NA> values with suitable non <NA> values

Description Usage Arguments Value

Description

This function replaces <NA> values in a list entry or data frame column with the median (for numeric columns) or the most frequent mode (for factor columns). It does the same as na.roughfix in package randomForest, but does so faster.

Usage

1

Arguments

object

list or data frame

...

additional arguments

Value

object, the list or data frame with <NA> values replaced


TDMR documentation built on March 3, 2020, 1:06 a.m.