View source: R/check_dataframeish.R
check_dataframeish | R Documentation |
Tests if an object has data.frame methods select
, filter
, mutate
, and collect
defined so that we can treat it
like a data.frame.
check_dataframeish(obj)
assert_dataframeish(obj, .var.name = checkmate::vname(obj), add = NULL)
test_dataframeish(obj)
obj |
object to test |
.var.name |
character(1) Name of the checked object to print in assertions. Defaults to the heuristic implemented in vname. |
add |
checkmate::AssertCollection Collection to store assertion messages. See checkmate::AssertCollection. |
see the checkmate package for more information on check/assert/test functions
assert_dataframeish()
: checkmate assert function for check_dataframeish
test_dataframeish()
: checkmate test function for check_dataframeish
check_dataframeish(list())
# FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.