impute.var: impute.var

Description Usage Arguments Value

Description

Creates a quick linear model to impute null values based on values in the data. Will only replace nulls, the predicted model values are discarded.

Usage

1
impute.var(df, var, formula, plots = F)

Arguments

df

The data frame.

var

The name of the variable to impute null values for, as a string

formula

The formula for the imputation model

plots

A variable to turn diagnostic plots on or off.

Value

Returns the original data frame with a new variable labeled Designed to put into magrittry chains easily.


christiantillich/AnaliTools documentation built on May 13, 2019, 6:59 p.m.