Fillr is an R package. The goal of fillr is to edit vectors to fill missing values, based on the vector itself. These functions are best used on variables within a grouped data frame.

Example

When you want to fill values in a vector with another value, the fillr functions can be used to impute all NA values based on some set rules.

Fill the NA values with the minimum, maximum or last value

Fill the NA values with the same value, only when all non-NA values are the same

Fill the NA values with the previous value (repeating with multiple repeating NA values)

Fill missing values given the observed interval within the vector