Description Usage Arguments Note Examples
Test if data equal in two data.tables, can ignore order of rows or columns.
1 2 | data.equal.data.table(DT1, DT2, ignore_row_order = TRUE,
ignore_col_order = FALSE, check.attributes = FALSE)
|
DT1 |
data.table. |
DT2 |
data.table. |
ignore_row_order |
logical. |
ignore_col_order |
logical. |
check.attributes |
logical, only FALSE supported. |
Duplicate names in DTs were not tested. All attributes all ignored.
1 2 3 4 5 6 7 8 | suppressPackageStartupMessages(library(dwtools))
DT1 <- dw.populate(scenario="fact")
DT2 <- copy(DT1)[sample(1:nrow(DT1),nrow(DT1),FALSE)]
data.equal.data.table(DT1,DT2,ignore_row_order=TRUE)
setcolorder(DT2,sample(names(DT2),length(DT2),FALSE))
data.equal.data.table(DT1,DT2,ignore_row_order=TRUE,ignore_col_order=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.