sc_col_elements {sanityTracker} | R Documentation |
Checks that the elements of a column belong to a certain set
Description
Checks that the elements of a column belong to a certain set
Usage
sc_col_elements(object, col, feasible_elements, ...)
Arguments
object |
table with a column specified by |
col |
name as a character of the column which is checked |
feasible_elements |
vector with characters that are feasible
for |
... |
further parameters that are passed to add_sanity_check. |
Value
see return object of add_sanity_check
Examples
d <- data.frame(type = letters[1:4], nmb = 1:4)
dummy_call <- function(x) {
sc_col_elements(object = d, col = "type", feasible_elements = letters[2:4])
}
dummy_call(x = d)
get_sanity_checks()
[Package sanityTracker version 0.1.0 Index]