tbl_equal | R Documentation |
Test if two tables are equivalent using the same process as tbl_check()
.
Unlike tbl_check()
, which returns either a problem object or NULL
,
tbl_equal()
returns either TRUE
or FALSE
.
tbl_equal( object = .result, expected = .solution, cols = NULL, check_class = TRUE, ignore_class = NULL, check_names = TRUE, check_column_order = FALSE, check_dimensions = TRUE, check_groups = TRUE, check_columns = TRUE, check_column_class = check_columns, check_column_levels = check_columns, check_column_values = check_columns, tolerance = sqrt(.Machine$double.eps), check_row_order = check_columns, env = parent.frame() )
object |
A data frame to be compared to |
expected |
A data frame containing the expected result. |
cols |
[ |
check_class |
|
ignore_class |
If an element is named, differences will only be ignored between the pair
of the element and its name.
For example, If all the classes of |
check_names |
|
check_column_order |
|
check_dimensions |
|
check_groups |
|
check_columns |
|
check_column_class |
|
check_column_levels |
|
check_column_values |
|
tolerance |
|
check_row_order |
|
env |
The environment in which to find |
A TRUE
or FALSE
value.
tbl_equal( data.frame(a = 1:10, b = 11:20), data.frame(b = 11:20, a = 1:10) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.