Description Usage Arguments Value Examples
View source: R/fill_missing_min.R
Fill all missing values in a vector with the minimum value if it is known.
1 | fill_missing_min(x, min_known_n = NULL, min_known_p = NULL)
|
x |
The vector to fill |
min_known_n |
numeric value: the minimum number of not-missing values |
min_known_p |
numeric value between 0 and 1: the minimum fraction of not-missing values |
a filled vector
1 2 | fill_missing_min(c(1, 2, NA))
fill_missing_min(c(NA, 1, 2, NA))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.