powered by
is.class
is.class(x)
is(x, class)
is2(x, class, .xname = get_name_in_parent(x))
x
TRUE
FALSE
is
assert_is_all_of
is2(1:5, "character") is2(matrix(1:5), "character") is2(1:5, c("character", "list", "numeric"))
Run the code above in your browser using DataLab