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.
tdmPreNAroughfix(object, ...)
list or data frame
additional arguments
object
, the list or data frame with <NA> values replaced