frac_complete {accumulate} | R Documentation |
Demand minimal fraction of complete records
Description
Demand minimal fraction of complete records
Usage
frac_complete(r, vars = TRUE)
Arguments
r |
Minimal fraction of records that must be complete. |
vars |
|
Value
a function that accepts a data frame and returns TRUE
when the
fraction of complete records is larger than or equal to n
and
otherwise FALSE
.
See Also
Other helpers:
min_complete()
,
min_records()
Examples
f <- frac_complete(0.1)
f(mtcars) # TRUE (all complete)
mt <- mtcars
mt[1:5,1] <- NA
f(mt) # FALSE (5/32 incomplete)
[Package accumulate version 0.9.3 Index]