fillMissing1D: Helper function for fillMissing; fills missing values in...

Description Usage Arguments Value

View source: R/utilities-data-validation.R

Description

Imputes uniformly in the range of the provided variable.

Usage

1
2
fillMissing1D(x, varType, lower = NULL, upper = NULL,
  categories = NULL)

Arguments

x

Input array of missing values.

varType

Variable type of input array to fillMissing function; affects how scaling occurs. Type: one of following strings: 'character', 'factor', 'logical', 'integer', 'numeric'.

lower

Lower bound for scaling. Type: numeric. Default NULL.

upper

Upper bound for scaling. Type: numeric. Default NULL.

categories

List of categories. Type: factor. Default NULL.

Value

Vector x with missing values imputed


IQSS/PSI-Library documentation built on Feb. 15, 2020, 9:03 p.m.