| check_tabular | R Documentation |
Checks if object is of class data.frame, data.table, or tbl_df.
check_tabular(x)
x |
Object to check. |
Called for side effects. Throws an error if input is not tabular, returns x invisibly otherwise.
EDG
check_tabular(iris)
check_tabular(data.table::as.data.table(iris))
# Throws error:
try(check_tabular(matrix(1:10, ncol = 2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.