centralImputNAs: Handling NAs in train and test

Description Usage Arguments Value

View source: R/workflows.R

Description

Discard columns/rows with too many NAs and then impute with central value.

Usage

1
centralImputNAs(train, test, nORp)

Arguments

train

training data set

test

testing data set

nORp

minimum percentage of NA values in a row/column for that row/column to be discarded from training set

Value

list with an entry for the training and test sets (in this order), both now with no NA values


mrfoliveira/STResampling-DSAA2019 documentation built on April 9, 2021, 5:39 a.m.