These functions are designed to be used in combination with the assertthat package
is_class(dat, class)assert_class(dat, class)
dat %assert_class% class
`is_class()` returns `TRUE`/`FALSE`, `assert_class()` returns `TRUE` or fails with an error message.
any R object
the class to be checked for
`is_class returns()` `TRUE`/`FALSE`. It comes with a on_failure function and is designed to be used in conjunction with the assertthat package. `assert_class()` and its infix version