sc_cols_non_NA {sanityTracker} | R Documentation |
Checks that all elements from the specified columns are not NA
Description
Checks that all elements from the specified columns are not NA
Usage
sc_cols_non_NA(object, cols = names(object), ..., unk_cols_callback = stop)
Arguments
object |
table with a columns specified by |
cols |
vector of characters of columns that are checked for NAs |
... |
further parameters that are passed to add_sanity_check. |
unk_cols_callback |
user-defined function that is called if
some of the |
Value
a list where every element is an object returned by
add_sanity_check for each column specified in cols
that exists in object
Examples
iris[c(1,3,5,7,9), 1] <- NA
dummy_call <- function(x) {
sc_cols_non_NA(object = iris, description = "No NAs expected in iris")
}
dummy_call(x = iris)
get_sanity_checks()
[Package sanityTracker version 0.1.0 Index]