same_content-deprecated: Test for equal content between two data tables

same_content-deprecatedR Documentation

Test for equal content between two data tables

Description

This function is deprecated in favor of wrapr::check_equiv_frames() imported from the wrapr package, accessible by loading 'midfieldr'.

Usage

same_content(x, y)

Arguments

x

Data frame to be compared. Same as target argument in all.equal()

y

Data frame to be compared. Same as current argument in all.equal()

Details

Test of data equality between data.table objects. Convenience function used in 'midfieldr' articles.

Wrapper around all.equal() for class data.table that ignores row order, column order, and data.table keys. Both inputs must be date frames. Equivalent to:

all.equal(target, current, ignore.row.order = TRUE, ignore.col.order = TRUE)

Value

Either TRUE or a description of the differences between x and y.

See Also

midfieldr-deprecated


MIDFIELDR/midfieldr documentation built on Jan. 28, 2025, 10:24 a.m.