Description Usage Arguments Value Examples
Fills missing values of a vector of any type by sampling with replacement from the non-missing values. Requires at least one non-missing value to run.
1 |
x |
A vector of any type possibly containing missing values. |
A vector of the same length and type as x
but without missing values.
1 2 3 | impute_univariate(c(NA, 0, 1, 0, 1))
impute_univariate(c("A", "A", NA))
impute_univariate(as.factor(c("A", "A", NA)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.