miss_fill: Fill in missing values based on other variables/vectors

miss_fillR Documentation

Fill in missing values based on other variables/vectors

Description

Handy function to imputing missing values based on values from other sources instead of statistical methods.

Usage

miss_fill(...)

Arguments

...

Can be a data frame, list of vectors, or just vectors. Vectors must have same length.

Value

A vector with imputed values

Examples

list(c(1, NA, NA), c(9, 2, NA), c(9, 9, 3)) %>% miss_fill()

Deleetdk/kirkegaard documentation built on April 27, 2024, 3:26 p.m.