View source: R/tbl_check_is_table.R
tbl_check_is_table | R Documentation |
Checks if object
inherits the data.frame class.
If the not
tbl_check_is_table()
returns a list describing the problem
tbl_grade_is_table()
returns a failing grade and
informative message with gradethis::fail()
tbl_check_is_table(object = .result, env = parent.frame()) tbl_grade_is_table(object = .result, env = parent.frame(), ...)
object |
An object to be compared to |
env |
The environment in which to find |
... |
Arguments passed on to
|
If there are any issues, a list from tbl_check_is_table()
or a
gradethis::fail()
message from tbl_grade_is_table()
.
Otherwise, invisibly returns NULL
.
not_table
: The object is not a table
.result <- data.frame(a = 1:10) tbl_check_is_table() tbl_grade_is_table() .result <- tibble::tibble(a = 1:10) tbl_check_is_table() tbl_grade_is_table() .result <- list(a = 1:10) tbl_check_is_table() tbl_grade_is_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.