powered by
Fill all missing values for an interval observed in the vector
fill_missing_interval(x, min_known_n = NULL, min_known_p = NULL)
The vector to fill
numeric value: the minimum number of not-missing values
numeric value between 0 and 1: the minimum fraction of not-missing values
a filled vector
# NOT RUN { fill_missing_interval(c(NA, 1, 2, NA)) fill_missing_interval(c(NA, 10, 20, NA)) # }
Run the code above in your browser using DataLab