Learn R Programming

RItools (version 0.3-3)

naImpute: Impute NA's

Description

Function used to fill NAs with imputation values, while adding NA flags to the data.

Usage

naImpute(FMLA, DATA, impfn = median, na.rm = TRUE, include.NA.flags = TRUE)

Value

Structure

Arguments

FMLA

Formula

DATA

Data

impfn

Function for imputing.

na.rm

What to do with NA's

include.NA.flags

Should NA flags be included