fill_missing_strict {vvfiller} | R Documentation |
Fill all missing values in a vector with the same value if it is known. Only fills the value when all known values are the same
fill_missing_strict(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
fill_missing_strict(c(NA, 1))